diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-04-25 19:18:43 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-04-25 19:18:43 +0000 |
commit | dcf56f424621f87405a5b1fcf46d5863fd7e9adc (patch) | |
tree | 1f56b0c60695be17fb919068b4aeb8353eb9b8e2 /locale/programs/locfile.c | |
parent | 69d8605e847999157ed38fdecc49dffb826cdd2a (diff) | |
download | glibc-dcf56f424621f87405a5b1fcf46d5863fd7e9adc.tar.gz glibc-dcf56f424621f87405a5b1fcf46d5863fd7e9adc.tar.xz glibc-dcf56f424621f87405a5b1fcf46d5863fd7e9adc.zip |
Update.
2001-04-25 Ulrich Drepper <drepper@redhat.com> * locale/programs/localedef.c (main): Always set a file name for the initial locale. * locale/programs/locfile.c (locfile_read): filename is allowed to be NULL.
Diffstat (limited to 'locale/programs/locfile.c')
-rw-r--r-- | locale/programs/locfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/programs/locfile.c b/locale/programs/locfile.c index 4dafaef19f..7c724e292f 100644 --- a/locale/programs/locfile.c +++ b/locale/programs/locfile.c @@ -51,7 +51,7 @@ locfile_read (struct localedef_t *result, struct charmap_t *charmap) ldfile = lr_open (filename, locfile_hash); if (ldfile == NULL) { - if (filename[0] != '/') + if (filename != NULL && filename[0] != '/') { char *i18npath = getenv ("I18NPATH"); if (i18npath != NULL && *i18npath != '\0') |