summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2009-10-02 01:21:31 +0200
committerDenys Vlasenko2009-10-02 01:21:31 +0200
commitf228913fed5759e99c071b206dd92e111066e234 (patch)
treeb858d7414e913ddeed2cb63d3e50f6e8e876a28a
parent963f52fc59f5f54e0e140f90717d7dba989ccaac (diff)
downloadbusybox-f228913fed5759e99c071b206dd92e111066e234.zip
busybox-f228913fed5759e99c071b206dd92e111066e234.tar.gz
ok, last fix wasn't correct... this one is better
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--applets/usage_pod.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/applets/usage_pod.c b/applets/usage_pod.c
index c1182fd..ee3729d 100644
--- 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;