diff options
author | Jim Meyering <jim@meyering.net> | 1999-02-14 03:28:41 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-02-14 03:28:41 +0000 |
commit | 69272c2e85d8e992d0ac3a8704e35a84a3fd3c85 (patch) | |
tree | 4cbb7fd7476eee2506597d96d7a16028f7954a40 /src | |
parent | 421265ba29ca833584ab78e570abdac86bf40fa3 (diff) | |
download | coreutils-69272c2e85d8e992d0ac3a8704e35a84a3fd3c85.tar.xz |
(dc_parse_stream): Don't try to dereference NULL
if there's an error is in our built-in list.
Diffstat (limited to 'src')
-rw-r--r-- | src/dircolors.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dircolors.c b/src/dircolors.c index 6f35307cd..d7b2cb67c 100644 --- a/src/dircolors.c +++ b/src/dircolors.c @@ -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; } |