From 60d43b8236aa1377cab9ffb10682271c1516a348 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Mon, 25 Jan 1999 20:58:14 +0000 Subject: [PATCH] * libltdl/ltdl.c (find_module): test old_name and dlname for NULL, not len==0 --- ChangeLog | 3 +++ libltdl/ltdl.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index bba8db99..55b82fde 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 5dc826ef..235bf873 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) {