diff options
Diffstat (limited to 'locale/programs/charmap.c')
-rw-r--r-- | locale/programs/charmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/locale/programs/charmap.c b/locale/programs/charmap.c index 9bf0b6a1b6..66adcb89db 100644 --- a/locale/programs/charmap.c +++ b/locale/programs/charmap.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.org>, 1996. @@ -94,7 +94,7 @@ charmap_read (const char *filename) struct dirent *dirent; dir = opendir (CHARMAP_PATH); - if (dir == NULL) + if (dir != NULL) { while ((dirent = readdir (dir)) != NULL) if (strcmp (dirent->d_name, ".") != 0 |