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:
963f52f
)
ok, last fix wasn't correct... this one is better
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 1 Oct 2009 23:21:31 +0000
(
01:21
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 1 Oct 2009 23:21:31 +0000
(
01:21
+0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
applets/usage_pod.c
patch
|
blob
|
history
diff --git
a/applets/usage_pod.c
b/applets/usage_pod.c
index c1182fdc6beea617b6b0cc67ea9d87c58f184de5..ee3729d7bf2f31f052face22b6c81d2b76a70f83 100644
(file)
--- a/
applets/usage_pod.c
+++ b/
applets/usage_pod.c
@@
-66,12
+66,15
@@
int main(void)
names = applet_names;
usage = usage_messages;
- while (*names
&& *usage
) {
+ while (*names) {
if (*names >= 'a' && *names <= 'z'
&& *usage != NOUSAGE_STR[0]
) {
printf("=item B<%s>\n\n", names);
- printf("%s %s\n\n", names, usage);
+ if (*usage)
+ printf("%s %s\n\n", names, usage);
+ else
+ printf("%s\n\n", names);
}
names += strlen(names) + 1;
usage += strlen(usage) + 1;