From c53ff7296481821b994ac95973ccd1a4b1c2c783 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 24 Oct 2018 19:57:29 +0200 Subject: [PATCH] tcp: fix wrong used variable initialization, issue #5290 --- src/tcp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tcp.c b/src/tcp.c index c3a5d2385..2a6af3937 100644 --- a/src/tcp.c +++ b/src/tcp.c @@ -535,7 +535,7 @@ tcp_connection_launch (int fd, void (*status) (void *opaque, htsmsg_t *m), access_t *aa) { tcp_server_launch_t *tsl, *res; - uint32_t used = 0, used2; + uint32_t used, used2; int64_t started = mclk(); int c1, c2; @@ -548,6 +548,7 @@ tcp_connection_launch try_again: res = NULL; + used = 0; LIST_FOREACH(tsl, &tcp_server_active, alink) { if (tsl->fd == fd) { res = tsl; -- 2.47.2