Initialize default syntax type.
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 2 Aug 2007 11:51:52 +0000 (11:51 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 2 Aug 2007 11:51:52 +0000 (11:51 +0000)
src/language/lexer/lexer.c

index 9101245176035a0e9bb3ba5cc514caf944b6f25a..a20cc17506db62d170a7a084b7ff0afabf3882e5 100644 (file)
@@ -868,12 +868,12 @@ bool
 lex_get_line (struct lexer *lexer)
 {
   bool line_starts_command;
-  enum getl_syntax syntax;
+  enum getl_syntax syntax = GETL_BATCH;
 
   if (!lex_get_line_raw (lexer, &syntax))
     {
       lexer->prog = NULL;
-    return false;
+      return false;
     }
 
   lex_preprocess_line (&lexer->line_buffer, syntax,