summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-06-03 13:50:44 -0600
committerJared Adams <jaxad0127@gmail.com>2010-06-03 14:22:50 -0600
commit24802c19b0c3ee287898a81a0257d27843d5d09d (patch)
treefa0f2074c3729c9dd66bd65cc5072013a517cbf6 /src
parentf0cdc948a48bd7f9b525a7232f61110eff733a7a (diff)
downloadmana-24802c19b0c3ee287898a81a0257d27843d5d09d.tar.gz
mana-24802c19b0c3ee287898a81a0257d27843d5d09d.tar.bz2
mana-24802c19b0c3ee287898a81a0257d27843d5d09d.tar.xz
mana-24802c19b0c3ee287898a81a0257d27843d5d09d.zip
Fix an unitialized variable problem in Theme
Reviewed-by: Thorbjørn Lindeijer
Diffstat (limited to 'src')
-rw-r--r--src/gui/theme.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 1406a0d0..e46616e0 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -228,6 +228,7 @@ Skin *Theme::readSkin(const std::string &filename)
Image *dBorders = Theme::getImageFromTheme(skinSetImage);
ImageRect border;
+ memset(&border, 0, sizeof(ImageRect));
// iterate <widget>'s
for_each_xml_child_node(widgetNode, rootNode)