From 6f1fc2655c5e4aea0b39e5d309a1cc4826f16d4e Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 3 Sep 2011 06:54:16 +0200 Subject: [PATCH] Avoid compiler warnings about uninitialised variables. Some compilers produced warnings about possible use of uninitialised variables (although such use was in fact not possible) These warnings were harmless (perhaps even erroneous) but it's no problem to avoid them. --- src/language/stats/t-test-parser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/language/stats/t-test-parser.c b/src/language/stats/t-test-parser.c index 7c8d8a54..efb84b32 100644 --- a/src/language/stats/t-test-parser.c +++ b/src/language/stats/t-test-parser.c @@ -48,18 +48,18 @@ cmd_t_test (struct lexer *lexer, struct dataset *ds) const struct variable **v2 = NULL; size_t n_v2; - size_t n_pairs; + size_t n_pairs = 0; vp *pairs = NULL; /* One sample mode */ - double testval; + double testval = SYSMIS; /* Independent samples mode */ const struct variable *gvar; union value gval0; union value gval1; - bool cut; + bool cut = false; tt.wv = dict_get_weight (dict); tt.dict = dict; -- 2.30.2