1999-01-25 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * libltdl/ltdl.c (find_module): test old_name and dlname for NULL,
+ not len==0
+
* libltdl/configure.in (libltdl_cv_objdir): yes, appending the "/"
in configure.in was much simpler
* libltdl/ltdl.c (objdir): ditto
/* try to open the old library first; if it was dlpreopened,
we want the preopened version of it, even if a dlopenable
module is available */
- if (*old_name && tryall_dlopen(handle, old_name) == 0)
+ if (old_name && tryall_dlopen(handle, old_name) == 0)
return 0;
/* try to open the dynamic library */
- if (*dlname) {
+ if (dlname) {
/* try to open the installed module */
if (installed &&
strlen(libdir)+1+strlen(dlname) < LTDL_FILENAME_MAX) {