diff options
author | Joe Landers <jlanders@vmware.com> | 2010-01-22 12:44:58 -0800 |
---|---|---|
committer | Petr Baudis <pasky@ucw.cz> | 2010-05-12 01:39:27 +0200 |
commit | 721d1acb10d336ad53dfefff8a515e3c1f2e3791 (patch) | |
tree | e5d6d44cf76db5f132177560af739704d4efa293 /locale | |
parent | ea8e535ed1178b121e3ad5a5b2ebfd24a3bcf27b (diff) | |
download | glibc-721d1acb10d336ad53dfefff8a515e3c1f2e3791.tar.gz glibc-721d1acb10d336ad53dfefff8a515e3c1f2e3791.tar.xz glibc-721d1acb10d336ad53dfefff8a515e3c1f2e3791.zip |
_nl_load_locale() incorrectly handles mmap() failures
(cherry picked from commit 8b2f25c23374fe79645499b8095f0d2f6eb24f71)
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 467dff157a..b91941eae9 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 */ |