Check the return value of various calls to lex_force_match.
[pspp] / src / language / stats / logistic.c
index d5dbad360544789fedfc257849cbba0303841454..f8debbaaa379898277ee1f7bf05c76da261238ee 100644 (file)
@@ -783,7 +783,8 @@ cmd_logistic (struct lexer *lexer, struct dataset *ds)
   if (! (lr.dep_var = parse_variable_const (lexer, lr.dict)))
     goto error;
 
-  lex_force_match (lexer, T_WITH);
+  if (! lex_force_match (lexer, T_WITH))
+    goto error;
 
   if (!parse_variables_const (lexer, lr.dict,
                              &pred_vars, &n_pred_vars,