From 127ecbe8a07d20e0e07f961f03c809f987f2ee35 Mon Sep 17 00:00:00 2001 From: dcooley Date: Tue, 12 Mar 2024 08:11:04 +1100 Subject: [PATCH] memset #33 --- src/h3rHierarchy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/h3rHierarchy.c b/src/h3rHierarchy.c index 85ee330..59648a2 100644 --- a/src/h3rHierarchy.c +++ b/src/h3rHierarchy.c @@ -195,6 +195,7 @@ SEXP h3rCompactCells(SEXP h3Sets) { setSize = Rf_xlength(h3Set); H3Index cellSet[setSize]; + memset(cellSet, H3_INIT, sizeof(cellSet)); H3Index compactedSet[setSize]; for (j = 0; j < setSize; j++) {