]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Take empty LD_PRELOAD string into account.
authorUlrich Drepper <drepper@redhat.com>
Wed, 12 Aug 1998 12:28:40 +0000 (12:28 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 12 Aug 1998 12:28:40 +0000 (12:28 +0000)
elf/rtld.c

index 1474896de1e649414bbf2ceca715ac640eb81a68..637b523415ba79f0c78b00504afa2c345a998f22 100644 (file)
@@ -359,7 +359,7 @@ of this helper program; chances are you did not intend to run this program.\n",
   npreloads = 0;
 
   preloadlist = getenv ("LD_PRELOAD");
-  if (preloadlist)
+  if (preloadlist && *preloadlist != '\0')
     {
       /* The LD_PRELOAD environment variable gives list of libraries
         separated by white space or colons that are loaded before the