* libltdl/ltdl.c (find_module): test old_name and dlname for NULL,

not len==0
This commit is contained in:
Alexandre Oliva 1999-01-25 20:58:14 +00:00 committed by Alexandre Oliva
parent 3a2cf81834
commit 60d43b8236
2 changed files with 5 additions and 2 deletions

View File

@ -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

View 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) {