From bfcd7b8f38276b41f7bcf816b9d2151953bf063f Mon Sep 17 00:00:00 2001 From: Bill Medland Date: Sat, 20 Apr 2002 20:52:53 +0000 Subject: [PATCH] Prevent error message if LD_LIBRARY_PATH is not being used. Comment out the DEBUG message. --- tools/winecheck | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/winecheck b/tools/winecheck index f6013d6b527..a669fe1e38a 100755 --- a/tools/winecheck +++ b/tools/winecheck @@ -242,10 +242,12 @@ sub Check_BaseFiles { } close (LDCONF); # Next parse LD_LIBRARY_PATH to find user-specific lib dirs. - my (@ld_dirs) = split (/:/, $ENV{'LD_LIBRARY_PATH'}); my ($dir); - foreach $dir (@ld_dirs) { - if (-d $dir) { push @dirlist, $dir; } + if ($ENV{'LD_LIBRARY_PATH'}) { + my (@ld_dirs) = split (/:/, $ENV{'LD_LIBRARY_PATH'}); + foreach $dir (@ld_dirs) { + if (-d $dir) { push @dirlist, $dir; } + } } # Now check for a libwine.so in each directory @@ -253,7 +255,7 @@ sub Check_BaseFiles { my ($target) = $dir . "/libwine.so"; if (-f $target) { push @output, $target; } } - print "DEBUG: found libwine: @output\n"; + #print "DEBUG: found libwine: @output\n"; if (@output > 1) {