From 4ad1d0cfbf96c3dbcf0ba104eb9f81bae6bdc6da Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 4 Jul 2000 00:22:32 +0000 Subject: (charmap_read): Prepend the condition filename == NULL. --- locale/programs/charmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'locale/programs') diff --git a/locale/programs/charmap.c b/locale/programs/charmap.c index 073d458849..f76bc24709 100644 --- a/locale/programs/charmap.c +++ b/locale/programs/charmap.c @@ -159,7 +159,8 @@ charmap_read (const char *filename) == 1) || fscanf (fp, "%% alias %as", &name) == 1) { - if (strcasecmp (name, filename) == 0) + if (filename != NULL + && strcasecmp (name, filename) == 0) break; free (name); -- cgit v1.2.3