X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=tools%2Fquake3%2Fcommon%2Fpolylib.c;h=21afcbcc9b3d2e482c61775c4912c6857f4ac05c;hb=8705acc09238c97ba0e79094621f0d6c859a7eb1;hp=bef8fbd4d917313a0880d335a58daf75e3744641;hpb=0c6b035d1792557709aac035f233de8532c15219;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; }