telnet: fix uninitialized variable bug
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 25 Sep 2019 11:48:01 +0000 (13:48 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 25 Sep 2019 11:48:01 +0000 (13:48 +0200)
function                                             old     new   delta
telnet_main                                         1236    1238      +2

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/telnet.c

index fa1628723393017e4113a1bc7650c723b52187ac..5c8805265a1b0aa432dda7934cd22f2d732abd9f 100644 (file)
@@ -248,7 +248,7 @@ static void handle_net_input(int len)
 {
        byte c;
        int i;
-       int cstart = cstart; /* for compiler */
+       int cstart = 0;
 
        i = 0;
        //bb_error_msg("[%u,'%.*s']", G.telstate, len, G.buf);