From e82a2a3280a8adbb223da2b4ce56a5dd9e006ecf Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 16 Sep 2021 07:58:21 -0400 Subject: [PATCH] enforce initialization and thus silence compiler warnings --- src/variable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/variable.cpp b/src/variable.cpp index c9051de9ad..1981d000c3 100644 --- a/src/variable.cpp +++ b/src/variable.cpp @@ -3775,7 +3775,7 @@ int Variable::group_function(char *word, char *contents, Tree **tree, // match word to group function - double value; + double value = 0.0; if (strcmp(word,"count") == 0) { if (narg == 1) value = group->count(igroup);