Fixed bug which caused a crash if "end data." was not left aligned.
authorJohn Darrington <john@cyane.csse.uwa.edu.au>
Sun, 14 Sep 2008 08:57:10 +0000 (16:57 +0800)
committerJohn Darrington <john@cyane.csse.uwa.edu.au>
Sun, 14 Sep 2008 08:57:10 +0000 (16:57 +0800)
src/language/data-io/data-reader.c

index 7fd722a81e3f9737a424f6dfb256c46d005d88c0..24ddcf13ec61cf6749c64cd63bfd4e03268cbeea 100644 (file)
@@ -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.  "