ok, last fix wasn't correct... this one is better
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 1 Oct 2009 23:21:31 +0000 (01:21 +0200)
committerDenys 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

index c1182fdc6beea617b6b0cc67ea9d87c58f184de5..ee3729d7bf2f31f052face22b6c81d2b76a70f83 100644 (file)
@@ -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;