X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=tools%2Fquake3%2Fcommon%2Fpolylib.c;h=21afcbcc9b3d2e482c61775c4912c6857f4ac05c;hb=84756b932f65be549f04bea386964701337d94ff;hp=bef8fbd4d917313a0880d335a58daf75e3744641;hpb=131c36f6be58bba507a42f767533b061b721dfec;p=xonotic%2Fnetradiant.git diff --git a/tools/quake3/common/polylib.c b/tools/quake3/common/polylib.c index bef8fbd4..21afcbcc 100644 --- a/tools/quake3/common/polylib.c +++ b/tools/quake3/common/polylib.c @@ -66,8 +66,7 @@ winding_t *AllocWinding( int points ){ } } s = sizeof( *w ) + ( points ? sizeof( w->p[0] ) * ( points - 1 ) : 0 ); - w = safe_malloc( s ); - memset( w, 0, s ); + w = safe_malloc0( s ); return w; } @@ -94,8 +93,7 @@ winding_accu_t *AllocWindingAccu( int points ){ } } s = sizeof( *w ) + ( points ? sizeof( w->p[0] ) * ( points - 1 ) : 0 ); - w = safe_malloc( s ); - memset( w, 0, s ); + w = safe_malloc0( s ); return w; }