From: Jaroslav Kysela Date: Wed, 24 Oct 2018 17:57:29 +0000 (+0200) Subject: tcp: fix wrong used variable initialization, issue #5290 X-Git-Tag: v4.2.8~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c53ff7296481821b994ac95973ccd1a4b1c2c783;p=thirdparty%2Ftvheadend.git tcp: fix wrong used variable initialization, issue #5290 --- 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;