(charmap_read): Prepend the condition filename == NULL.
authordrepper <drepper>
Tue, 4 Jul 2000 00:22:32 +0000 (00:22 +0000)
committerdrepper <drepper>
Tue, 4 Jul 2000 00:22:32 +0000 (00:22 +0000)
locale/programs/charmap.c

index 073d458..f76bc24 100644 (file)
@@ -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);