From 04b916dbb72c7f56a8eef8cda7b09e52d89b874a Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Wed, 31 Oct 2012 23:02:34 +0100 Subject: [PATCH] add various variable initializations to keep valgrind happy --- src/daemonc/remotecontrol.cpp | 1 + src/driver/framebuffer.cpp | 3 +++ src/gui/bookmarkmanager.cpp | 1 + src/gui/infoviewer.cpp | 1 + src/gui/keybind_setup.cpp | 1 + src/neutrino.cpp | 1 + 6 files changed, 8 insertions(+) diff --git a/src/daemonc/remotecontrol.cpp b/src/daemonc/remotecontrol.cpp index f197b28e5..f22ee3d38 100644 --- a/src/daemonc/remotecontrol.cpp +++ b/src/daemonc/remotecontrol.cpp @@ -109,6 +109,7 @@ CRemoteControl::CRemoteControl() is_video_started = true; //next_EPGid = 0; are_subchannels = false; + has_unresolved_ctags = false; } diff --git a/src/driver/framebuffer.cpp b/src/driver/framebuffer.cpp index d5c35f56f..44d38e889 100644 --- a/src/driver/framebuffer.cpp +++ b/src/driver/framebuffer.cpp @@ -218,6 +218,9 @@ CFrameBuffer::CFrameBuffer() memset(green, 0, 256*sizeof(__u16)); memset(blue, 0, 256*sizeof(__u16)); memset(trans, 0, 256*sizeof(__u16)); +#ifdef USE_OPENGL + mpGLThreadObj = NULL; +#endif } CFrameBuffer* CFrameBuffer::getInstance() diff --git a/src/gui/bookmarkmanager.cpp b/src/gui/bookmarkmanager.cpp index d9cb3a5e7..c4672497a 100644 --- a/src/gui/bookmarkmanager.cpp +++ b/src/gui/bookmarkmanager.cpp @@ -185,6 +185,7 @@ void CBookmarkManager::writeBookmarkFile() { CBookmarkManager::CBookmarkManager() : bookmarkfile ('\t') { + bookmarksmodified = false; readBookmarkFile(); } diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index aacfa3403..590856349 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -99,6 +99,7 @@ CInfoViewer::CInfoViewer () Init(); infoViewerBB->Init(); + strcpy(old_timestr, ""); } CInfoViewer::~CInfoViewer() diff --git a/src/gui/keybind_setup.cpp b/src/gui/keybind_setup.cpp index 43fd4eb0b..451aac763 100644 --- a/src/gui/keybind_setup.cpp +++ b/src/gui/keybind_setup.cpp @@ -408,6 +408,7 @@ bool CKeybindSetup::changeNotify(const neutrino_locale_t OptionName, void * /* d #else /* if we have a good input device, we don't need the private ioctl above */ struct input_event ie; + memset(&ie, 0, sizeof(ie)); ie.type = EV_REP; /* increase by 10 ms to trick the repeat checker code in the * rcinput loop into accepting the key event... */ diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 9e8b23749..34408f98a 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -3176,6 +3176,7 @@ void CNeutrinoApp::ExitRun(const bool /*write_si*/, int retcode) } delete g_RCInput; + g_RCInput = NULL; //fan speed if (g_info.has_fan) { int fspeed = 0;