From: Rudolf Polzer Date: Tue, 18 Oct 2011 09:10:17 +0000 (+0200) Subject: add a missing memset X-Git-Tag: xonotic-v0.6.0~65 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=756d07eba3fb073ad10cf164c953bb33a64220b0;p=xonotic%2Fnetradiant.git add a missing memset --- diff --git a/tools/quake3/q3map2/bspfile_abstract.c b/tools/quake3/q3map2/bspfile_abstract.c index 084b8598..d55db338 100644 --- a/tools/quake3/q3map2/bspfile_abstract.c +++ b/tools/quake3/q3map2/bspfile_abstract.c @@ -550,7 +550,8 @@ qboolean ParseEntity( void ) /* create new entity */ mapEnt = &entities[ numEntities ]; numEntities++; - + memset( mapEnt, 0, sizeof( *mapEnt ) ); + /* parse */ while( 1 ) {