From 63a19076c93f2e1508f5fa501a69e6e5bb93c648 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 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/bfeb3c47ff0f399b3084c4ead7fe4b2fca4164b1 Author: Thilo Graf Date: 2017-10-24 (Tue, 24 Oct 2017) --- 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))