From cb46414e310c90b43d490471ccf19b468fcae999 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 12 Aug 1998 12:28:40 +0000 Subject: [PATCH] Take empty LD_PRELOAD string into account. --- elf/rtld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2