Skip to content

Commit

Permalink
memset #33
Browse files Browse the repository at this point in the history
  • Loading branch information
dcooley committed Mar 11, 2024
1 parent 0dfdfc4 commit 127ecbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/h3rHierarchy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 127ecbe

Please sign in to comment.