From: John Darrington Date: Thu, 5 Feb 2004 05:17:49 +0000 (+0000) Subject: Fixed a bug causing PSPP to crash under certain invalid input. X-Git-Tag: v0.4.0~373 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83f1a2bf0e4a667ac084bdc727e507341d169267;p=pspp-builds.git Fixed a bug causing PSPP to crash under certain invalid input. --- diff --git a/src/ChangeLog b/src/ChangeLog index 862ffdaa..53cf28a2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +Thu Feb 5 13:19:06 WAST 2004 John Darrington + + * fixed bug which caused a crash under certain invalid input. + Wed Feb 4 15:34:11 WST 2004 John Darrington * t-test.q: Added calculations for the one sample variant of the T-TEST diff --git a/src/command.c b/src/command.c index 2c62d2f2..f86ef55c 100644 --- a/src/command.c +++ b/src/command.c @@ -249,7 +249,7 @@ cmd_parse (void) /* Perform the state transition if the command completed successfully (at least in part). */ - if (result != 0) + if (result != CMD_FAILURE) { pgm_state = cp->transition[pgm_state];