mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-03-25 16:00:24 +08:00
* libltdl/ltdl.c (find_module): test old_name and dlname for NULL,
not len==0
This commit is contained in:
parent
3a2cf81834
commit
60d43b8236
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user