From: Ben Pfaff Date: Fri, 1 Dec 2006 05:52:59 +0000 (+0000) Subject: * inpt-pgm.c (cmd_reread): Always return error code upon detecting X-Git-Tag: v0.6.0~678 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a86909a07716f0d1d2452acb6558e7bd190d0f4a;p=pspp-builds.git * inpt-pgm.c (cmd_reread): Always return error code upon detecting syntax error. Fixes bug #18419. Thanks to John Darrington for reporting this bug. --- diff --git a/src/language/data-io/ChangeLog b/src/language/data-io/ChangeLog index b5f8545f..3c5313a0 100644 --- a/src/language/data-io/ChangeLog +++ b/src/language/data-io/ChangeLog @@ -1,3 +1,9 @@ +Thu Nov 30 21:51:58 2006 Ben Pfaff + + * inpt-pgm.c (cmd_reread): Always return error code upon detecting + syntax error. Fixes bug #18419. Thanks to John Darrington for + reporting this bug. + Sun Nov 19 09:17:45 2006 Ben Pfaff * data-list.c (parse_free): Follow documented (but odd) rule that diff --git a/src/language/data-io/inpt-pgm.c b/src/language/data-io/inpt-pgm.c index 3459ee0f..cc6bd6a3 100644 --- a/src/language/data-io/inpt-pgm.c +++ b/src/language/data-io/inpt-pgm.c @@ -358,6 +358,7 @@ cmd_reread (struct lexer *lexer, struct dataset *ds) { lex_error (lexer, NULL); expr_free (e); + return CMD_CASCADING_FAILURE; } }