[git commit master] ok, last fix wasn't correct... this one is better

Denys Vlasenko vda.linux at googlemail.com
Thu Oct 1 23:21:31 UTC 2009


commit: http://git.busybox.net/busybox/commit/?id=f228913fed5759e99c071b206dd92e111066e234
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 applets/usage_pod.c |    7 +++++--
 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;
-- 
1.6.3.3



More information about the busybox-cvs mailing list