From dd43f7c2249ff49f59cbb394882d7c5fe556a015 Mon Sep 17 00:00:00 2001 From: Tim Davis Date: Wed, 11 Oct 2023 11:49:54 -0500 Subject: [PATCH] initialize Cnvec_nonempty to avoid undefined behavior --- Source/GB_add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/GB_add.c b/Source/GB_add.c index 770e982004..2ffc102706 100644 --- a/Source/GB_add.c +++ b/Source/GB_add.c @@ -109,7 +109,7 @@ GrB_Info GB_add // C=A+B, C=A+B, or C=A+B // initializations //-------------------------------------------------------------------------- - int64_t Cnvec, Cnvec_nonempty ; + int64_t Cnvec = 0 , Cnvec_nonempty = 0 ; int64_t *Cp = NULL ; size_t Cp_size = 0 ; int64_t *Ch = NULL ; size_t Ch_size = 0 ; int64_t *C_to_M = NULL ; size_t C_to_M_size = 0 ;