From: Jaroslav Kysela Date: Wed, 24 Oct 2018 17:57:29 +0000 (+0200) Subject: tcp: fix wrong used variable initialization, issue #5290 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=860fb782d0f2923d0b9d5a8728301475357c5ee2;p=thirdparty%2Ftvheadend.git tcp: fix wrong used variable initialization, issue #5290 --- diff --git a/src/tcp.c b/src/tcp.c index 5349784a4..e38f189be 100644 --- a/src/tcp.c +++ b/src/tcp.c @@ -575,7 +575,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; @@ -588,6 +588,7 @@ tcp_connection_launch try_again: res = NULL; + used = 0; LIST_FOREACH(tsl, &tcp_server_active, alink) { if (tsl->fd == fd) { res = tsl;