projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e40070
)
man: ignore (not complain) lines with less than 2 tokens
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 26 Jul 2008 19:44:53 +0000
(19:44 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 26 Jul 2008 19:44:53 +0000
(19:44 -0000)
in config file
miscutils/man.c
patch
|
blob
|
history
diff --git
a/miscutils/man.c
b/miscutils/man.c
index df00c3ee77ab6632c06938d5d357e60b0d56d3dd..7ef5941a1fa066429fcc4360dcba6cb47d48c35c 100644
(file)
--- a/
miscutils/man.c
+++ b/
miscutils/man.c
@@
-106,7
+106,9
@@
int man_main(int argc UNUSED_PARAM, char **argv)
if (parser) {
/* go through man configuration file and search relevant paths, sections */
char *token[2];
- while (config_read(parser, token, 2, 2, "# \t", PARSE_LAST_IS_GREEDY)) {
+ while (config_read(parser, token, 2, 0, "# \t", PARSE_LAST_IS_GREEDY)) {
+ if (!token[1])
+ continue;
if (strcmp("MANPATH", token[0]) == 0) {
man_path_list[count_mp] = xstrdup(token[1]);
count_mp++;