mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't dump core if none of the directories in /etc/manpath.config exist.
Submitted by: terry
This commit is contained in:
parent
2466516a6c
commit
eb0f0a174a
1 changed files with 3 additions and 0 deletions
|
|
@ -493,6 +493,9 @@ get_manpath (perrs, path)
|
|||
lp++;
|
||||
}
|
||||
|
||||
if (!len)
|
||||
return strdup("");
|
||||
|
||||
manpathlist = (char *) malloc (len);
|
||||
if (manpathlist == NULL)
|
||||
gripe_alloc (len, "manpathlist");
|
||||
|
|
|
|||
Loading…
Reference in a new issue