diff options
author | rubidium <rubidium@openttd.org> | 2009-01-27 14:31:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-27 14:31:33 +0000 |
commit | 993ba73aff37375a41d7e7948c8421a20be8934c (patch) | |
tree | 65b4d3ad3f69744bef356abcd589028ea7a10cb8 /src | |
parent | 283a265d8a43e25339e4af36833dd4c23c0938a3 (diff) | |
download | openttd-993ba73aff37375a41d7e7948c8421a20be8934c.tar.xz |
(svn r15285) -Fix: valgrind complaining about reading uninitialised memory when saving
Diffstat (limited to 'src')
-rw-r--r-- | src/gamelog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gamelog.cpp b/src/gamelog.cpp index 81c4e59fa..3f29aaec3 100644 --- a/src/gamelog.cpp +++ b/src/gamelog.cpp @@ -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; |