From e836f18ff18d51a7d04e51c418712755430a82ff Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 27 Jan 2009 14:31:33 +0000 Subject: (svn r15285) -Fix: valgrind complaining about reading uninitialised memory when saving --- src/gamelog.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3-54-g00ecf