(dc_parse_stream): Don't try to dereference NULL

if there's an error is in our built-in list.
This commit is contained in:
Jim Meyering committed 1999-02-14 03:28:41 +00:00
1 parent 421265ba29
commit 69272c2e85
1 file changed
+2 -1
+2 -1
View File
@@ -366,7 +366,8 @@ dc_parse_stream (FILE *fp, const char *filename)
if (unrecognized && (state == ST_TERMSURE || state == ST_TERMYES))
{
error (0, 0, _("%s:%lu: unrecognized keyword `%s'"),
filename, (long unsigned) line_number, keywd);
(filename ? filename : _("<internal>")),
(long unsigned) line_number, keywd);
err = 1;
}