summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/man/manpath/manpath.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1999-11-23 03:38:41 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1999-11-23 03:38:41 +0000
commit41a1d0d2b544e4a2207bfa640fec9502e8a92c6b (patch)
treed2e60946655bb47cef3cbc6ebd8fe15c3fbfcfd6 /gnu/usr.bin/man/manpath/manpath.c
parent1ed4b3e952ccab5031e58a8c30f02462e2789a74 (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/man/manpath/manpath.c')
-rw-r--r--gnu/usr.bin/man/manpath/manpath.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gnu/usr.bin/man/manpath/manpath.c b/gnu/usr.bin/man/manpath/manpath.c
index 414ffd6bf00a..bdfbfc61d79e 100644
--- a/gnu/usr.bin/man/manpath/manpath.c
+++ b/gnu/usr.bin/man/manpath/manpath.c
@@ -281,7 +281,6 @@ get_dirlist ()
fprintf (stderr, "found manpath map %s --> %s\n",
dlp->bin, dlp->mandir);
}
-#ifdef MAIN
else if (!strncmp ("MANLOCALES", bp, 10))
{
if ((p = strchr (bp, ' ')) == NULL &&
@@ -301,6 +300,7 @@ get_dirlist ()
*p-- = '\0';
} while (p >= bp && (*p == ' ' || *p == '\t'));
+#ifdef MAIN
if (man_locales != NULL)
free (man_locales);
@@ -308,12 +308,11 @@ get_dirlist ()
fclose(config);
return -1;
}
+#endif /* MAIN */
if (debug)
- fprintf (stderr, "found man locales: %s\n",
- man_locales);
+ fprintf (stderr, "found man locales: %s\n", bp);
}
-#endif /* MAIN */
else
{
gripe_reading_mp_config (config_file);