Avoid a NULL pointer dereference.
This commit is contained in:
parent
28ab032ea9
commit
5952de4b1b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116539
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user