chiark / gitweb /
get line number right in error msgs
authorian <ian>
Sun, 13 Jul 2008 19:24:32 +0000 (19:24 +0000)
committerian <ian>
Sun, 13 Jul 2008 19:24:32 +0000 (19:24 +0000)
hostside/record.c

index 672b7430e7b8a4709514e0075998fb90caf7f077..76876496aa2127f677f5388cf47b72964dcecc77 100644 (file)
@@ -487,7 +487,7 @@ static void parse_file(const char *why) {
   f= fopen(filename,"r");
   if (!f) diee("config: cannot open %s: %s", why, filename);
   record_yyrestart(f);
-  record_yylineno= 0;
+  record_yylineno= 1;
   r= record_yyparse();
   assert(!r); /* we're supposed to call yyerror which dies */
   fclose(f);