diff options
-rw-r--r-- | sbin/devd/devd.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc index 3dadde4..5856874 100644 --- a/sbin/devd/devd.cc +++ b/sbin/devd/devd.cc @@ -311,6 +311,7 @@ config::parse_one_file(const char *fn) yyin = fopen(fn, "r"); if (yyin == NULL) err(1, "Cannot open config file %s", fn); + lineno = 1; if (yyparse() != 0) errx(1, "Cannot parse %s at line %d", fn, lineno); fclose(yyin); |