case the name given to lt_dlopen contains no extension.
2004-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * libltdl/ltdl.c (try_dlopen): Fix null pointer dereference in
+ case the name given to lt_dlopen contains no extension.
+
* libltdl/lt_dlloader.c (lt_dlloader_remove), libltdl/ltdl.c
(tryall_dlopen, lt_dlhandle_next): Show usage of function pointers.
assert (base_name && *base_name);
ext = strrchr (base_name, '.');
+ if (!ext)
+ {
+ ext = base_name + LT_STRLEN (base_name);
+ }
/* extract the module name from the file name */
name = MALLOC (char, ext - base_name + 1);