(svn r26064) -Fix: possible uninitialised array when loading a broken TT-ish savegame

This commit is contained in:
rubidium 2013-11-23 18:06:00 +00:00
parent fcd6bf6342
commit fd0454e229

View File

@ -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;