diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2002-10-27 02:12:52 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2002-10-27 02:12:52 +0000 |
commit | eb0f0a174a88295ee31e727bec7dbbeda6d02b40 (patch) | |
tree | b020dd736dd8bc9be3925b2dd663341e1cdf2259 /gnu/usr.bin/man/manpath/manpath.c | |
parent | 2466516a6c596f2721e620ed7947861ef84f8493 (diff) |
Notes
Diffstat (limited to 'gnu/usr.bin/man/manpath/manpath.c')
-rw-r--r-- | gnu/usr.bin/man/manpath/manpath.c | 3 |
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"); |