From d9ee35006db8ed149e64f636c4b550e076acee5e Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 23 Nov 2013 18:06:00 +0000 Subject: (svn r26064) -Fix: possible uninitialised array when loading a broken TT-ish savegame --- src/saveload/oldloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/saveload') diff --git a/src/saveload/oldloader.cpp b/src/saveload/oldloader.cpp index ff911a899..83fc58ebf 100644 --- a/src/saveload/oldloader.cpp +++ b/src/saveload/oldloader.cpp @@ -244,7 +244,7 @@ static inline bool CheckOldSavegameType(FILE *f, char *temp, const char *last, u static SavegameType DetermineOldSavegameType(FILE *f, char *title, const char *last) { assert_compile(TTD_HEADER_SIZE >= TTO_HEADER_SIZE); - char temp[TTD_HEADER_SIZE]; + char temp[TTD_HEADER_SIZE] = "Unknown"; SavegameType type = SGT_TTO; -- cgit v1.2.3-70-g09d2