Skip to content

Commit 127ecbe

Browse files
committed
memset #33
1 parent 0dfdfc4 commit 127ecbe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/h3rHierarchy.c

+1
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ SEXP h3rCompactCells(SEXP h3Sets) {
195195
setSize = Rf_xlength(h3Set);
196196

197197
H3Index cellSet[setSize];
198+
memset(cellSet, H3_INIT, sizeof(cellSet));
198199
H3Index compactedSet[setSize];
199200

200201
for (j = 0; j < setSize; j++) {

0 commit comments

Comments
 (0)