From 6ec436c305a5eda73824534b2189c88c0deb8aa4 Mon Sep 17 00:00:00 2001 From: Cedric Borgese Date: Sun, 23 Oct 2005 12:13:14 +0000 Subject: Fix a warning and a possible segmentation fault. --- src/gui/menuwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2