Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 22 May 2000 16:45:42 +0000 (16:45 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 22 May 2000 16:45:42 +0000 (16:45 +0000)
2000-05-22  Jakub Jelinek  <jakub@redhat.com>

* elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
free it and set to (void *) -1.

ChangeLog
elf/dl-load.c

index 962c9b2..483c160 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-22  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
+       free it and set to (void *) -1.
+
 2000-05-22  Jakub Jelinek <jakub@redhat.com>
 
        * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
index 10698ce..f5b2bcd 100644 (file)
@@ -636,6 +636,12 @@ _dl_init_paths (const char *llp)
 
       (void) fillin_rpath (local_strdup (llp), env_path_list, ":;",
                           __libc_enable_secure, "LD_LIBRARY_PATH", NULL);
+
+      if (env_path_list[0] == NULL)
+       {
+         free (env_path_list);
+         env_path_list = (void *) -1;
+       }
     }
   else
     env_path_list = (void *) -1;