Skip to content

Commit

Permalink
libcommon's readGameSaveInfoFromFile() from must now ensure that
Browse files Browse the repository at this point in the history
saved game names are not empty; so populate with the string
"UNNAMED" if necessary.
  • Loading branch information
danij-deng committed May 21, 2011
1 parent 211e85c commit 58d09a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doomsday/plugins/common/src/p_saveg.c
Expand Up @@ -4907,6 +4907,12 @@ static boolean readGameSaveInfoFromFile(const ddstring_t* savePath, ddstring_t*
# endif
#endif

// Ensure we have a non-empty name.
if(found && Str_IsEmpty(name))
{
Str_Set(name, "UNNAMED");
}

return found;
}
}
Expand Down

0 comments on commit 58d09a7

Please sign in to comment.