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:
Maxim Sobolev 2005-12-01 03:47:01 +00:00
parent 964e14b04a
commit 4fd87db95a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152980

View File

@ -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);