mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-27 06:09:57 +08:00
* libltdl/ltdl.c (lt_dlopenadvise): Instead of asserting, return
FILE_NOT_FOUND if the filename is "".
This commit is contained in:
parent
86a2c620c8
commit
361ec0ead5
@ -1,5 +1,8 @@
|
||||
2007-09-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* libltdl/ltdl.c (lt_dlopenadvise): Instead of asserting, return
|
||||
FILE_NOT_FOUND if the filename is "".
|
||||
|
||||
* libltdl/ltdl.c (try_dlopen): Fix computation of extension,
|
||||
avoids subtracting pointer from NULL pointer.
|
||||
|
||||
|
@ -1599,9 +1599,8 @@ lt_dlopenadvise (const char *filename, lt_dladvise advise)
|
||||
|
||||
return handle;
|
||||
}
|
||||
else
|
||||
else if (filename && *filename)
|
||||
{
|
||||
assert (filename);
|
||||
|
||||
/* First try appending ARCHIVE_EXT. */
|
||||
errors += try_dlopen (&handle, filename, archive_ext, advise);
|
||||
|
Loading…
Reference in New Issue
Block a user