diff options
author | Tim Angus <tim@ngus.net> | 2013-03-26 16:50:03 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-03-27 11:33:16 +0000 |
commit | ecf45acd236aaf1a0d2b00a94a24d8f24fbceae4 (patch) | |
tree | 23d703104aa48a4533daed653d5c429f73dccb05 /src/renderergl1/tr_marks.c | |
parent | a6e5804c1162832fa99d31c88033cbf6f1efd2f0 (diff) |
Fix some of the things clang --analyze flagged
Diffstat (limited to 'src/renderergl1/tr_marks.c')
-rw-r--r-- | src/renderergl1/tr_marks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderergl1/tr_marks.c b/src/renderergl1/tr_marks.c index f85a1244..05afb16c 100644 --- a/src/renderergl1/tr_marks.c +++ b/src/renderergl1/tr_marks.c @@ -42,8 +42,8 @@ Out must have space for two more vertexes than in static void R_ChopPolyBehindPlane( int numInPoints, vec3_t inPoints[MAX_VERTS_ON_POLY], int *numOutPoints, vec3_t outPoints[MAX_VERTS_ON_POLY], vec3_t normal, vec_t dist, vec_t epsilon) { - float dists[MAX_VERTS_ON_POLY+4]; - int sides[MAX_VERTS_ON_POLY+4]; + float dists[MAX_VERTS_ON_POLY+4] = { 0 }; + int sides[MAX_VERTS_ON_POLY+4] = { 0 }; int counts[3]; float dot; int i, j; |