]> sourceware.org Git - glibc.git/commitdiff
(_nl_free_locale): Do nothing if DATA is null.
authorRoland McGrath <roland@gnu.org>
Wed, 26 Apr 1995 20:06:15 +0000 (20:06 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 26 Apr 1995 20:06:15 +0000 (20:06 +0000)
locale/loadlocale.c

index bc9102bf2886b5dc1cccfc7609e0f8b22f299dd8..5073bd4be3072e61bd5ec0dec1f5ff2db41078ea 100644 (file)
@@ -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)
This page took 0.039673 seconds and 5 git commands to generate.