From 82c37b78cc83ad673e179b87e19089502d8b4c65 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 6 Jul 2019 16:30:34 +0000 Subject: [PATCH] Prevent uninitialized access to hitwalls[] in clipmove() git-svn-id: https://svn.eduke32.com/eduke32@7759 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/clip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/src/clip.cpp b/source/build/src/clip.cpp index 36b5cd975..31e188dc1 100644 --- a/source/build/src/clip.cpp +++ b/source/build/src/clip.cpp @@ -1322,7 +1322,7 @@ int32_t clipmove(vec3_t * const pos, int16_t * const sectnum, int32_t xvect, int } #endif - int32_t hitwalls[4], hitwall; + int32_t hitwalls[4] = {}, hitwall; int32_t clipReturn = 0; native_t cnt = clipmoveboxtracenum;