aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2006-11-11 07:49:05 +0000
committerEugene Sandulenko2006-11-11 07:49:05 +0000
commit90aa1d18520615750f459383ce850103f5769a0f (patch)
tree2f5a523c4a17b4e94b36283e67ba378e82bdaf8c
parentc7fa8667d013bd2f9aaa6a4c5108adebc51b109d (diff)
downloadscummvm-rg350-90aa1d18520615750f459383ce850103f5769a0f.tar.gz
scummvm-rg350-90aa1d18520615750f459383ce850103f5769a0f.tar.bz2
scummvm-rg350-90aa1d18520615750f459383ce850103f5769a0f.zip
Fix valgrind warning on unitialized variable.
svn-id: r24675
-rw-r--r--gui/ThemeClassic.cpp1
-rw-r--r--gui/ThemeModern.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/gui/ThemeClassic.cpp b/gui/ThemeClassic.cpp
index 59bfe13e95..7faa5973f7 100644
--- a/gui/ThemeClassic.cpp
+++ b/gui/ThemeClassic.cpp
@@ -28,6 +28,7 @@ ThemeClassic::ThemeClassic(OSystem *system, const Common::String &config, const
_stylefile = config;
_system = system;
_initOk = false;
+ _enabled = false;
_font = 0;
_fontName.clear();
memset(&_screen, 0, sizeof(_screen));
diff --git a/gui/ThemeModern.cpp b/gui/ThemeModern.cpp
index 621d57c49e..f245ccf778 100644
--- a/gui/ThemeModern.cpp
+++ b/gui/ThemeModern.cpp
@@ -57,6 +57,7 @@ ThemeModern::ThemeModern(OSystem *system, const Common::String &stylefile, const
_lastUsedBitMask(0), _forceRedraw(false), _imageHandles(0), _images(0), _colors(), _fonts(), _cursor(0), _gradientFactors() {
_stylefile = stylefile;
_initOk = false;
+ _enabled = false;
_useCursor = false;
memset(&_screen, 0, sizeof(_screen));
memset(&_dialog, 0, sizeof(_dialog));