Fix logic error which causes <null> to be printed instead of the
actual file name in error message. MFC After: 2 weeks
This commit is contained in:
parent
964e14b04a
commit
4fd87db95a
@ -880,7 +880,7 @@ get_worklist(char **files)
|
||||
fname = "<stdin>";
|
||||
}
|
||||
if (!f)
|
||||
err(1, "%s", conf);
|
||||
err(1, "%s", fname);
|
||||
|
||||
parse_file(f, fname, &worklist, &globlist, &defconf);
|
||||
(void) fclose(f);
|
||||
|
Loading…
Reference in New Issue
Block a user