diff options
author | Joe Landers <jlanders@vmware.com> | 2010-01-22 12:44:58 -0800 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2010-01-22 12:44:58 -0800 |
commit | 8b2f25c23374fe79645499b8095f0d2f6eb24f71 (patch) | |
tree | 59655deae1fd95200f5742c83ccf6fcb30a59775 /locale | |
parent | aef699dce14a56ff0f212f533e5ea485d3cec96a (diff) | |
download | glibc-8b2f25c23374fe79645499b8095f0d2f6eb24f71.zip glibc-8b2f25c23374fe79645499b8095f0d2f6eb24f71.tar.gz glibc-8b2f25c23374fe79645499b8095f0d2f6eb24f71.tar.bz2 |
_nl_load_locale() incorrectly handles mmap() failures
Diffstat (limited to 'locale')
-rw-r--r-- | locale/loadlocale.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/locale/loadlocale.c b/locale/loadlocale.c index 6ef25b0..61e6f7f 100644 --- a/locale/loadlocale.c +++ b/locale/loadlocale.c @@ -224,6 +224,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category) PROT_READ, MAP_FILE|MAP_COPY, fd, 0); if (__builtin_expect (filedata == MAP_FAILED, 0)) { + filedata = NULL; if (__builtin_expect (errno, ENOSYS) == ENOSYS) { #endif /* _POSIX_MAPPED_FILES */ |