[git commit branch/1_31_stable] telnet: fix uninitialized variable bug

Denys Vlasenko vda.linux at googlemail.com
Mon Oct 21 14:54:40 UTC 2019


commit: https://git.busybox.net/busybox/commit/?id=be11940911363a73fc4e74d759d0b472447daabc
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/1_31_stable

function                                             old     new   delta
telnet_main                                         1236    1238      +2

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/telnet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/networking/telnet.c b/networking/telnet.c
index fa1628723..5c8805265 100644
--- a/networking/telnet.c
+++ b/networking/telnet.c
@@ -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);


More information about the busybox-cvs mailing list