diff options
author | Steven Noonan <steven@uplinklabs.net> | 2009-09-20 17:12:08 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2009-09-25 14:32:29 -0700 |
commit | 7ddbb5591ef05997318b0f56cb1bc2c29fdd3227 (patch) | |
tree | 1fafef2fd490dd079c52d7b52f8757ef509d0a91 /crawl-ref | |
parent | 98e54608796785be979158050d5d81540f480b05 (diff) | |
download | crawl-ref-7ddbb5591ef05997318b0f56cb1bc2c29fdd3227.tar.gz crawl-ref-7ddbb5591ef05997318b0f56cb1bc2c29fdd3227.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>
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/directn.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index f5fdee5767..68e1509272 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) |