From 756d07eba3fb073ad10cf164c953bb33a64220b0 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 18 Oct 2011 11:10:17 +0200 Subject: [PATCH] add a missing memset --- tools/quake3/q3map2/bspfile_abstract.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) { -- 2.39.2