diff options
-rw-r--r-- | libbb/appletlib.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index d7c9288cb..c417a270d 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -103,14 +103,13 @@ void FAST_FUNC bb_show_usage(void) | |||
103 | if (ENABLE_SHOW_USAGE) { | 103 | if (ENABLE_SHOW_USAGE) { |
104 | #ifdef SINGLE_APPLET_STR | 104 | #ifdef SINGLE_APPLET_STR |
105 | /* Imagine that this applet is "true". Dont suck in printf! */ | 105 | /* Imagine that this applet is "true". Dont suck in printf! */ |
106 | const char *p; | 106 | const char *usage_string = unpack_usage_messages(); |
107 | const char *usage_string = p = unpack_usage_messages(); | ||
108 | 107 | ||
109 | if (*p == '\b') { | 108 | if (*usage_string == '\b') { |
110 | full_write2_str("No help available.\n\n"); | 109 | full_write2_str("No help available.\n\n"); |
111 | } else { | 110 | } else { |
112 | full_write2_str("Usage: "SINGLE_APPLET_STR" "); | 111 | full_write2_str("Usage: "SINGLE_APPLET_STR" "); |
113 | full_write2_str(p); | 112 | full_write2_str(usage_string); |
114 | full_write2_str("\n\n"); | 113 | full_write2_str("\n\n"); |
115 | } | 114 | } |
116 | if (ENABLE_FEATURE_CLEAN_UP) | 115 | if (ENABLE_FEATURE_CLEAN_UP) |