Avoid a NULL pointer dereference.

This commit is contained in:
mdodd 2003-06-18 16:17:13 +00:00
parent fb686f341c
commit af80699b54

View File

@ -815,7 +815,8 @@ find_library(const char *xname, const Obj_Entry *refobj)
}
#ifdef WITH_LIBMAP
if (libmap_disable || (name = lm_find(refobj->path, xname)) == NULL)
if (libmap_disable || (refobj == NULL) ||
(name = lm_find(refobj->path, xname)) == NULL)
#endif
name = (char *)xname;