From 855510da634240d8954c478a09f8e7889f7f3e32 Mon Sep 17 00:00:00 2001 From: Scott Fennell Date: Wed, 26 Sep 2018 15:10:49 -0500 Subject: [PATCH] handle edge default case for uninitialized value in eqparse --- trick_source/data_products/EQParse/eqparse_evaluate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trick_source/data_products/EQParse/eqparse_evaluate.c b/trick_source/data_products/EQParse/eqparse_evaluate.c index a9f87e5a..8c6e50a1 100644 --- a/trick_source/data_products/EQParse/eqparse_evaluate.c +++ b/trick_source/data_products/EQParse/eqparse_evaluate.c @@ -20,7 +20,7 @@ double eval(stack * stk, stack1 * no) { stack1 nos = NULL; - double x, y, z; + double x, y, z = 0.0; char ch; ldiv_t ldivt; while (!empty(*stk)) {