]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
fold: initialize state
authorWolfgang Bumiller <wry.git@bumiller.com>
Sat, 4 Mar 2023 13:18:38 +0000 (14:18 +0100)
committerWolfgang Bumiller <wry.git@bumiller.com>
Sat, 4 Mar 2023 13:18:38 +0000 (14:18 +0100)
Signed-off-by: Wolfgang Bumiller <wry.git@bumiller.com>
fold.cpp

index 56ff7f24ada944217ecc54d8b8b153642d8ffdfa..8c1c2cf3c061fa84fe14e03e2240c7f0d1cb61e7 100644 (file)
--- a/fold.cpp
+++ b/fold.cpp
@@ -601,7 +601,7 @@ static GMQCC_INLINE void vec3_check_except(vec3_t     a,
                                            lex_ctx_t  ctx,
                                            sfloat_t (*callback)(sfloat_state_t *, sfloat_t, sfloat_t))
 {
-    vec3_soft_state_t state;
+    vec3_soft_state_t state = {};
 
     if (!OPTS_FLAG(ARITHMETIC_EXCEPTIONS))
         return;