array address of sys_dlsearch_path against NULL, rather test for
nonempty contents.
Coverity reports CID 148 and CID 149 via Jeff Squyres.
2007-09-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * libltdl/ltdl.c (try_dlopen, lt_dlforeachfile): 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.
+
* libltdl/ltdl.c (tryall_dlopen_module): Fix string length
computation: do not allocate more than needed.
}
#endif
#if defined(LT_DLSEARCH_PATH)
- if (!file && sys_dlsearch_path)
+ if (!file && *sys_dlsearch_path)
{
file = find_file (sys_dlsearch_path, base_name, &dir);
}
}
#endif
#if defined(LT_DLSEARCH_PATH)
- if (!is_done && sys_dlsearch_path)
+ if (!is_done && *sys_dlsearch_path)
{
is_done = foreach_dirinpath (sys_dlsearch_path, 0,
foreachfile_callback, fpptr, data);