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.
This commit is contained in:
Ulrich Drepper 2000-05-22 16:45:42 +00:00
parent 3f651a4de3
commit 6a7c9bb49a
2 changed files with 11 additions and 0 deletions

View File

@ -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> 2000-05-22 Jakub Jelinek <jakub@redhat.com>
* stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is

View File

@ -636,6 +636,12 @@ _dl_init_paths (const char *llp)
(void) fillin_rpath (local_strdup (llp), env_path_list, ":;", (void) fillin_rpath (local_strdup (llp), env_path_list, ":;",
__libc_enable_secure, "LD_LIBRARY_PATH", NULL); __libc_enable_secure, "LD_LIBRARY_PATH", NULL);
if (env_path_list[0] == NULL)
{
free (env_path_list);
env_path_list = (void *) -1;
}
} }
else else
env_path_list = (void *) -1; env_path_list = (void *) -1;