zapit: properly initialize arrays in scanbat and scansdt

Origin commit data
------------------
Branch: ni/coolstream
Commit: cbccd82b9c
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-09-25 (Mon, 25 Sep 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2017-09-25 11:25:51 +02:00
committed by vanhofen
parent c0b8468871
commit f702592f64
2 changed files with 2 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ bool CBat::Read()
int secdone[255];
int sectotal = -1;
memset(secdone, 0, 255);
memset(secdone, 0, sizeof(secdone));
cDemux * dmx = new cDemux(dmxnum);
dmx->Open(DMX_PSI_CHANNEL);

View File

@@ -68,7 +68,7 @@ bool CSdt::Read()
int sectotal = -1;
bool cable_hack_done = false;
memset(secdone, 0, 255);
memset(secdone, 0, sizeof(secdone));
cDemux * dmx = new cDemux(dmxnum);
dmx->Open(DMX_PSI_CHANNEL);