From a86909a07716f0d1d2452acb6558e7bd190d0f4a Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 1 Dec 2006 05:52:59 +0000 Subject: [PATCH] * inpt-pgm.c (cmd_reread): Always return error code upon detecting syntax error. Fixes bug #18419. Thanks to John Darrington for reporting this bug. --- src/language/data-io/ChangeLog | 6 ++++++ src/language/data-io/inpt-pgm.c | 1 + 2 files changed, 7 insertions(+) diff --git a/src/language/data-io/ChangeLog b/src/language/data-io/ChangeLog index b5f8545fa1..3c5313a0db 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 3459ee0fbb..cc6bd6a327 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; } } -- 2.30.2