Skip to content

Commit c9bedba

Browse files
committed
fix: initialize variable, appease Coverity
1 parent 4d2669a commit c9bedba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/colvarcomp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ class colvar::rmsd
12161216

12171217
/// Reference coordinates (for RMSD calculation only)
12181218
/// Includes sets with symmetry permutations (n_permutations * n_atoms)
1219-
size_t num_ref_pos;
1219+
size_t num_ref_pos = 0;
12201220
cvm::ag_vector_real_t ref_pos_soa;
12211221

12221222
#if defined (COLVARS_CUDA) || defined (COLVARS_HIP)

0 commit comments

Comments
 (0)