]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (try_dlopen): Do not test array address of
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 1 Sep 2007 08:14:04 +0000 (08:14 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 1 Sep 2007 08:14:04 +0000 (08:14 +0000)
sys_dlsearch_path against NULL, rather test for nonempty
contents.
Coverity reports CID 148 and CID 149 via Jeff Squyres.

ChangeLog
libltdl/ltdl.c

index 4e8a1a9f088f242b47cbd59c793474e446d0a24c..998c0d5d44643c9d6f439f05c5aecb94d7b774e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-09-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * libltdl/ltdl.c (try_dlopen): Do not test array address of
+       sys_dlsearch_path against NULL, rather test for nonempty
+       contents.
+       Coverity reports CID 148 and CID 149 via Jeff Squyres.
+
 2007-08-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * README: Fix testing instructions.
index d449a55fb71dea641efa41966fb3251f6b985d61..5135fbe24c65d207d826273bec1ab6cf9ce78f9a 100644 (file)
@@ -3217,7 +3217,7 @@ try_dlopen (phandle, filename)
            }
 #endif
 #ifdef LTDL_SYSSEARCHPATH
-         if (!file && sys_search_path)
+         if (!file && *sys_search_path)
            {
              file = find_file (sys_search_path, base_name, &dir);
            }