mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106012
@ -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 New Issue
Block a user