diff options
author | Roland McGrath <roland@gnu.org> | 1995-04-26 20:06:15 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-04-26 20:06:15 +0000 |
commit | 8b575de1c633e46182e9b9c07fd613dd5666c416 (patch) | |
tree | 14071be635cf8daba73f45fd7c2775b2e8d494f6 /locale | |
parent | 103c293fb627696f5a66043eb876e0fd0983525a (diff) | |
download | glibc-8b575de1c633e46182e9b9c07fd613dd5666c416.zip glibc-8b575de1c633e46182e9b9c07fd613dd5666c416.tar.gz glibc-8b575de1c633e46182e9b9c07fd613dd5666c416.tar.bz2 |
(_nl_free_locale): Do nothing if DATA is null.
Diffstat (limited to 'locale')
-rw-r--r-- | locale/loadlocale.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/locale/loadlocale.c b/locale/loadlocale.c index bc9102b..5073bd4 100644 --- a/locale/loadlocale.c +++ b/locale/loadlocale.c @@ -204,6 +204,9 @@ void _nl_free_locale (struct locale_data *data) { int save = errno; + if (! data) + /* Ignore a null pointer, like free does. */ + return; if (__munmap ((caddr_t) data->filedata, data->filesize) < 0) { if (errno == ENOSYS) |