mirror of git://sourceware.org/git/glibc.git
(_nl_free_locale): Do nothing if DATA is null.
This commit is contained in:
parent
103c293fb6
commit
8b575de1c6
|
|
@ -204,6 +204,9 @@ void
|
||||||
_nl_free_locale (struct locale_data *data)
|
_nl_free_locale (struct locale_data *data)
|
||||||
{
|
{
|
||||||
int save = errno;
|
int save = errno;
|
||||||
|
if (! data)
|
||||||
|
/* Ignore a null pointer, like free does. */
|
||||||
|
return;
|
||||||
if (__munmap ((caddr_t) data->filedata, data->filesize) < 0)
|
if (__munmap ((caddr_t) data->filedata, data->filesize) < 0)
|
||||||
{
|
{
|
||||||
if (errno == ENOSYS)
|
if (errno == ENOSYS)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue