add various variable initializations to keep valgrind happy

This commit is contained in:
Stefan Seyfried
2012-10-31 23:02:34 +01:00
parent 9dc4b03248
commit 04b916dbb7
6 changed files with 8 additions and 0 deletions

View File

@@ -109,6 +109,7 @@ CRemoteControl::CRemoteControl()
is_video_started = true; is_video_started = true;
//next_EPGid = 0; //next_EPGid = 0;
are_subchannels = false; are_subchannels = false;
has_unresolved_ctags = false;
} }

View File

@@ -218,6 +218,9 @@ CFrameBuffer::CFrameBuffer()
memset(green, 0, 256*sizeof(__u16)); memset(green, 0, 256*sizeof(__u16));
memset(blue, 0, 256*sizeof(__u16)); memset(blue, 0, 256*sizeof(__u16));
memset(trans, 0, 256*sizeof(__u16)); memset(trans, 0, 256*sizeof(__u16));
#ifdef USE_OPENGL
mpGLThreadObj = NULL;
#endif
} }
CFrameBuffer* CFrameBuffer::getInstance() CFrameBuffer* CFrameBuffer::getInstance()

View File

@@ -185,6 +185,7 @@ void CBookmarkManager::writeBookmarkFile() {
CBookmarkManager::CBookmarkManager() : bookmarkfile ('\t') CBookmarkManager::CBookmarkManager() : bookmarkfile ('\t')
{ {
bookmarksmodified = false;
readBookmarkFile(); readBookmarkFile();
} }

View File

@@ -99,6 +99,7 @@ CInfoViewer::CInfoViewer ()
Init(); Init();
infoViewerBB->Init(); infoViewerBB->Init();
strcpy(old_timestr, "");
} }
CInfoViewer::~CInfoViewer() CInfoViewer::~CInfoViewer()

View File

@@ -408,6 +408,7 @@ bool CKeybindSetup::changeNotify(const neutrino_locale_t OptionName, void * /* d
#else #else
/* if we have a good input device, we don't need the private ioctl above */ /* if we have a good input device, we don't need the private ioctl above */
struct input_event ie; struct input_event ie;
memset(&ie, 0, sizeof(ie));
ie.type = EV_REP; ie.type = EV_REP;
/* increase by 10 ms to trick the repeat checker code in the /* increase by 10 ms to trick the repeat checker code in the
* rcinput loop into accepting the key event... */ * rcinput loop into accepting the key event... */

View File

@@ -3176,6 +3176,7 @@ void CNeutrinoApp::ExitRun(const bool /*write_si*/, int retcode)
} }
delete g_RCInput; delete g_RCInput;
g_RCInput = NULL;
//fan speed //fan speed
if (g_info.has_fan) { if (g_info.has_fan) {
int fspeed = 0; int fspeed = 0;