aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2003-02-15 05:33:06 +0000
committerKris Kennaway <kris@FreeBSD.org>2003-02-15 05:33:06 +0000
commit72c025cb6276c352b9c4c0f2313c0d62343f8183 (patch)
tree950168c01eb0f9a69b28ba57e59e829389a1d268 /gnu
parentf4030eeb099940cfc12ea27e9e146f50c6217fc0 (diff)
Notes
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/man/manpath/manpath.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/usr.bin/man/manpath/manpath.c b/gnu/usr.bin/man/manpath/manpath.c
index c500a55f2546..c1a25dea2f53 100644
--- a/gnu/usr.bin/man/manpath/manpath.c
+++ b/gnu/usr.bin/man/manpath/manpath.c
@@ -493,6 +493,9 @@ get_manpath (perrs, path)
lp++;
}
+ if (!len)
+ return strdup("");
+
manpathlist = (char *) malloc (len);
if (manpathlist == NULL)
gripe_alloc (len, "manpathlist");