Don't dump core if none of the directories in /etc/manpath.config exist.

Submitted by:	terry
This commit is contained in:
kris 2002-10-27 02:12:52 +00:00
parent ac78845d15
commit 9316f3838a

View File

@ -493,6 +493,9 @@ get_manpath (perrs, path)
lp++;
}
if (!len)
return strdup("");
manpathlist = (char *) malloc (len);
if (manpathlist == NULL)
gripe_alloc (len, "manpathlist");