From: Ulrich Drepper Date: Wed, 12 Aug 1998 12:28:40 +0000 (+0000) Subject: Take empty LD_PRELOAD string into account. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb46414e310c90b43d490471ccf19b468fcae999;p=thirdparty%2Fglibc.git Take empty LD_PRELOAD string into account. --- diff --git a/elf/rtld.c b/elf/rtld.c index 1474896de1e..637b523415b 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -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