From 444ed6085b8be06a62b92a3e040aebb36d1697c7 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sat, 1 Sep 2007 08:14:04 +0000 Subject: [PATCH] * 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. --- ChangeLog | 7 +++++++ libltdl/ltdl.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4e8a1a9f0..998c0d5d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-09-01 Ralf Wildenhues + + * 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 * README: Fix testing instructions. diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index d449a55fb..5135fbe24 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -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); } -- 2.47.2