Changeset - r10946:05d24e00b85c
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-01-27 14:31:33
rubidium@openttd.org
(svn r15285) -Fix: valgrind complaining about reading uninitialised memory when saving
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/gamelog.cpp
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)