From: John Darrington Date: Sun, 14 Sep 2008 08:57:10 +0000 (+0800) Subject: Fixed bug which caused a crash if "end data." was not left aligned. X-Git-Tag: v0.6.1~13 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=4b6ee946a98a755bae4f48629e31a5493cbf7bbd;p=pspp-builds.git Fixed bug which caused a crash if "end data." was not left aligned. --- diff --git a/src/language/data-io/data-reader.c b/src/language/data-io/data-reader.c index 7fd722a8..24ddcf13 100644 --- a/src/language/data-io/data-reader.c +++ b/src/language/data-io/data-reader.c @@ -187,6 +187,7 @@ read_inline_record (struct dfm_reader *r) if (!lex_get_line_raw (r->lexer)) { + lex_discard_line (r->lexer); msg (SE, _("Unexpected end-of-file while reading data in BEGIN " "DATA. This probably indicates " "a missing or misformatted END DATA command. "