From 83f1a2bf0e4a667ac084bdc727e507341d169267 Mon Sep 17 00:00:00 2001
From: John Darrington <john@darrington.wattle.id.au>
Date: Thu, 5 Feb 2004 05:17:49 +0000
Subject: [PATCH] Fixed a bug causing PSPP to crash under certain invalid
 input.

---
 src/ChangeLog | 4 ++++
 src/command.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

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 <john@darrington.wattle.id.au>
+
+	* fixed bug which caused a crash under certain invalid input.
+
 Wed Feb  4 15:34:11 WST 2004 John Darrington <john@darrington.wattle.id.au>
 
 	* 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];
 
-- 
2.30.2