[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libltdl/ltdl.c (try_dlopen): check error from last resort tryall_dlopen
From: |
Alexandre Duret-Lutz |
Subject: |
libltdl/ltdl.c (try_dlopen): check error from last resort tryall_dlopen |
Date: |
06 Mar 2002 23:44:42 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Index: ChangeLog
from Alexandre Duret-Lutz <address@hidden>
* libltdl/ltdl.c (try_dlopen): Clear newhandle if the last resort
tryall_dlopen() fails, otherwise this function might return a non
null handle even if no library were opened.
Index: libltdl/ltdl.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/ltdl.c,v
retrieving revision 1.163
diff -u -r1.163 ltdl.c
--- libltdl/ltdl.c 3 Mar 2002 03:19:55 -0000 1.163
+++ libltdl/ltdl.c 6 Mar 2002 22:39:02 -0000
@@ -2875,7 +2875,8 @@
#endif
)))
{
- tryall_dlopen (&newhandle, filename);
+ if (tryall_dlopen (&newhandle, filename) != 0)
+ newhandle = 0;
}
if (!newhandle)
--
Alexandre Duret-Lutz
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- libltdl/ltdl.c (try_dlopen): check error from last resort tryall_dlopen,
Alexandre Duret-Lutz <=