summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/man/manpath/manpath.c
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-10-27 02:12:52 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-10-27 02:12:52 +0000
commiteb0f0a174a88295ee31e727bec7dbbeda6d02b40 (patch)
treeb020dd736dd8bc9be3925b2dd663341e1cdf2259 /gnu/usr.bin/man/manpath/manpath.c
parent2466516a6c596f2721e620ed7947861ef84f8493 (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/man/manpath/manpath.c')
-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");