Fix crash in T-Test after parsing a null terminated string.
[pspp] / src / language / stats / t-test-parser.c
index 7af0dfc9c606b24f72e8c5be5d44327732f78db2..38e58ce01a299c9ed8a194004f68f77727fa9329 100644 (file)
@@ -44,9 +44,9 @@ cmd_t_test (struct lexer *lexer, struct dataset *ds)
 
   /* Variables pertaining to the paired mode */
   const struct variable **v1 = NULL;
-  size_t n_v1;
+  size_t n_v1 = 0;
   const struct variable **v2 = NULL;
-  size_t n_v2;
+  size_t n_v2 = 0;
          
   size_t n_pairs = 0;
   vp *pairs = NULL;