]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (find_module): test old_name and dlname for NULL,
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Mon, 25 Jan 1999 20:58:14 +0000 (20:58 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 25 Jan 1999 20:58:14 +0000 (20:58 +0000)
not len==0

ChangeLog
libltdl/ltdl.c

index bba8db999bd3116c860452966cbbab6e4e05efeb..55b82fde755733e80577e5cfa891456f9d184f84 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 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
index 5dc826ef6da169ab07711c46356774d533aa8c37..235bf873865b3346a4ae12fba7ba0784bb1a54ac 100644 (file)
@@ -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) {