diff options
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r-- | elf/dl-load.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c index 10698ce045..f5b2bcd031 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -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; |