Skip to content

Commit

Permalink
initialize Cnvec_nonempty to avoid undefined behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
DrTimothyAldenDavis committed Oct 11, 2023
1 parent 5569193 commit dd43f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/GB_add.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ GrB_Info GB_add // C=A+B, C<M>=A+B, or C<!M>=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 ;
Expand Down

0 comments on commit dd43f7c

Please sign in to comment.