From: Alexandre Oliva Date: Mon, 25 Jan 1999 20:58:14 +0000 (+0000) Subject: * libltdl/ltdl.c (find_module): test old_name and dlname for NULL, X-Git-Tag: release-1-2f~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60d43b8236aa1377cab9ffb10682271c1516a348;p=thirdparty%2Flibtool.git * libltdl/ltdl.c (find_module): test old_name and dlname for NULL, not len==0 --- diff --git a/ChangeLog b/ChangeLog index bba8db999..55b82fde7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1999-01-25 Alexandre Oliva + * 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 diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 5dc826ef6..235bf8738 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -808,10 +808,10 @@ find_module (handle, dir, libdir, dlname, old_name, installed) /* 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) {