* libltdl/ltdl.c (lt_dlopenadvise): Instead of asserting, return

FILE_NOT_FOUND if the filename is "".
This commit is contained in:
Ralf Wildenhues 2007-09-01 10:43:28 +00:00
parent 86a2c620c8
commit 361ec0ead5
2 changed files with 4 additions and 2 deletions

View File

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

View File

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