summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-09-20 17:12:08 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-09-23 11:34:36 -0700
commit215b4e4720d358f72c755f7aec8c0cedd7e18102 (patch)
tree3b3163b8d810dd064d56f36bbc7dbac922dffc87
parent4f63d90dfa282973d47eaff84e76139b5b12042b (diff)
downloadcrawl-ref-215b4e4720d358f72c755f7aec8c0cedd7e18102.tar.gz
crawl-ref-215b4e4720d358f72c755f7aec8c0cedd7e18102.zip
directn.cc: fix GCC 4.0 warning "'me' may be used uninitialized in this function"
It's an inane warning, as it doesn't consider the loop immediately after the declaration sets the value on the first iteration. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
-rw-r--r--crawl-ref/source/directn.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index 49a014ba95..301ac61143 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -629,7 +629,7 @@ void full_describe_view()
#endif
std::vector<formatted_string> fss;
formatted_string::parse_string_to_multiple(str, fss);
- MenuEntry *me;
+ MenuEntry *me = NULL;
for (unsigned int j = 0; j < fss.size(); ++j)
{
if (j == 0)