From bfeb3c47ff0f399b3084c4ead7fe4b2fca4164b1 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 24 Oct 2017 07:44:30 +0200 Subject: [PATCH] tuxtxt_common.h: add missing init to readcnt --- lib/libtuxtxt/tuxtxt_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libtuxtxt/tuxtxt_common.h b/lib/libtuxtxt/tuxtxt_common.h index c6e6c7bd8..68b6d76bc 100644 --- a/lib/libtuxtxt/tuxtxt_common.h +++ b/lib/libtuxtxt/tuxtxt_common.h @@ -605,7 +605,7 @@ void *tuxtxt_CacheThread(void * /*arg*/) continue; /* read packet */ - ssize_t readcnt; + ssize_t readcnt = 0; readcnt = dmx->Read(pes_packet, sizeof (pes_packet), 1000); //if (readcnt != sizeof(pes_packet))