mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r15285) -Fix: valgrind complaining about reading uninitialised memory when saving
This commit is contained in:
parent
ea01534e6d
commit
e836f18ff1
@ -332,6 +332,7 @@ void GamelogRevision()
|
||||
LoggedChange *lc = GamelogChange(GLCT_REVISION);
|
||||
if (lc == NULL) return;
|
||||
|
||||
memset(lc->revision.text, 0, sizeof(lc->revision.text));
|
||||
strecpy(lc->revision.text, _openttd_revision, lastof(lc->revision.text));
|
||||
lc->revision.slver = SAVEGAME_VERSION;
|
||||
lc->revision.modified = _openttd_revision_modified;
|
||||
|
Loading…
Reference in New Issue
Block a user