+2005-10-13 Peter O'Gorman <peter@pogma.com>
+
+ * libltdl/ltdl.c (find_module): Check that dir is set.
+ (load_deplibs): Don't free the user search paths too early.
+
2005-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* tests/testsuite.at (LT_AT_AUTOMAKE): New macro.
/* maybe it was moved to another directory */
{
- if (tryall_dlopen_module (handle,
- (const char *) 0, dir, dlname) == 0)
+ if (dir && (tryall_dlopen_module (handle,
+ (const char *) 0, dir, dlname) == 0))
return 0;
}
}
}
}
- /* restore the old search path */
- MEMREASSIGN (user_search_path, save_search_path);
if (!depcount)
{
cleanup:
FREE (names);
+ /* restore the old search path */
+ if (save_search_path) {
+ MEMREASSIGN (user_search_path, save_search_path);
+ }
#endif
return errors;