libbb: remove unused variable
authorLauri Kasanen <curaga@operamail.com>
Sat, 13 Nov 2010 22:16:05 +0000 (23:16 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 13 Nov 2010 22:16:05 +0000 (23:16 +0100)
Signed-off-by: Lauri Kasanen <curaga@operamail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/appletlib.c

index d7c9288cbf06b5f48f83370653e02eefc254305b..c417a270d3499d39e4949a996591eb193e2de5a3 100644 (file)
@@ -103,14 +103,13 @@ void FAST_FUNC bb_show_usage(void)
        if (ENABLE_SHOW_USAGE) {
 #ifdef SINGLE_APPLET_STR
                /* Imagine that this applet is "true". Dont suck in printf! */
-               const char *p;
-               const char *usage_string = p = unpack_usage_messages();
+               const char *usage_string = unpack_usage_messages();
 
-               if (*p == '\b') {
+               if (*usage_string == '\b') {
                        full_write2_str("No help available.\n\n");
                } else {
                        full_write2_str("Usage: "SINGLE_APPLET_STR" ");
-                       full_write2_str(p);
+                       full_write2_str(usage_string);
                        full_write2_str("\n\n");
                }
                if (ENABLE_FEATURE_CLEAN_UP)