Don't dump core if none of the directories in /etc/manpath.config exist.
Submitted by: terry
This commit is contained in:
parent
8400cc7714
commit
877eb20660
@ -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