initialize variables (mostly to silence valgrind)

Signed-off-by: Thilo Graf <dbt@novatux.de>


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



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-09-30 20:50:31 +02:00
committed by Jacek Jendrzej
parent 6e501dfcad
commit 018bb3b50c
4 changed files with 7 additions and 0 deletions

View File

@@ -144,6 +144,7 @@ bool timerd_parse_command(CBasicMessage::Header &rmsg, int connfd)
for(CTimerEventMap::iterator lpos = events.begin();lpos != events.end();++lpos)
{
CTimerd::responseGetTimer lresp;
memset(&lresp, 0, sizeof(lresp)); /* valgrind... */
CTimerEvent *event = lpos->second;
@@ -253,6 +254,7 @@ bool timerd_parse_command(CBasicMessage::Header &rmsg, int connfd)
CTimerdMsg::responseAddTimer rspAddTimer;
CTimerEvent* event;
CTimerd::TransferEventInfo evInfo;
rspAddTimer.eventID = 0; /* silence valgrind */
switch(msgAddTimer.eventType)
{
case CTimerd::TIMER_STANDBY :

View File

@@ -63,6 +63,7 @@ void CTimerManager::Init(void)
m_isTimeSet = false;
timer_is_rec = false;
wakeup = 0;
shutdown_eventID = -1;
loadRecordingSafety();
//thread starten