summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Borgese <cedric.borgese@gmail.com>2005-10-23 12:13:14 +0000
committerCedric Borgese <cedric.borgese@gmail.com>2005-10-23 12:13:14 +0000
commit6ec436c305a5eda73824534b2189c88c0deb8aa4 (patch)
tree31c834115cf6a8797030fa68d53b27d8a299dcb3
parentce2813cb1f4988669422c6af3e8c4442776e45c8 (diff)
downloadmana-client-6ec436c305a5eda73824534b2189c88c0deb8aa4.tar.gz
mana-client-6ec436c305a5eda73824534b2189c88c0deb8aa4.tar.bz2
mana-client-6ec436c305a5eda73824534b2189c88c0deb8aa4.tar.xz
mana-client-6ec436c305a5eda73824534b2189c88c0deb8aa4.zip
Fix a warning and a possible segmentation fault.
-rw-r--r--src/gui/menuwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/menuwindow.cpp b/src/gui/menuwindow.cpp
index cf917116..ed32f61d 100644
--- a/src/gui/menuwindow.cpp
+++ b/src/gui/menuwindow.cpp
@@ -100,7 +100,7 @@ void MenuWindow::draw(gcn::Graphics *g)
void MenuWindowListener::action(const std::string& eventId)
{
- Window *window;
+ Window *window = NULL;
if (eventId == "Status")
{
window = statusWindow;