Fixed crash in REGRESSION when only one SAVE parameter present.
[pspp] / src / language / stats / regression.c
index ef5a9f28d1eafc0c99cc3df6ae5ae04ba68125c0..52009e29683a72e4722df66674aead46fd1e2562 100644 (file)
@@ -335,6 +335,8 @@ cmd_regression (struct lexer *lexer, struct dataset *ds)
   workspace.pred_idx = -1;
   workspace.writer = NULL;                      
   workspace.reader = NULL;
+  workspace.residvars = NULL;
+  workspace.predvars = NULL;
   if (save)
     {
       int i;
@@ -960,7 +962,7 @@ reg_stats_anova (const linreg * c, const struct variable *var)
 
   tab_double (t, 5, 1, 0, F, NULL, RC_OTHER);
 
-  tab_double (t, 6, 1, 0, pval, NULL, RC_OTHER);
+  tab_double (t, 6, 1, 0, pval, NULL, RC_PVALUE);
 
   tab_title (t, _("ANOVA (%s)"), var_to_string (var));
   tab_submit (t);