avoids subtracting pointer from NULL pointer.
2007-09-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * libltdl/ltdl.c (try_dlopen): Fix computation of extension,
+ avoids subtracting pointer from NULL pointer.
+
* libltdl/ltdl.c (try_dlopen, lt_dlforeachfile): Do not test
array address of sys_dlsearch_path against NULL, rather test for
nonempty contents.
assert (base_name && *base_name);
+ ext = strrchr (base_name, '.');
if (!ext)
{
ext = base_name + LT_STRLEN (base_name);
}
- ext = strrchr (base_name, '.');
/* extract the module name from the file name */
name = MALLOC (char, ext - base_name + 1);