Skip to content

Commit b97f872

Browse files
committed
removed memset
1 parent af828a3 commit b97f872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nqrecreateindices.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ SEXP nqRecreateIndices(SEXP xo, SEXP len, SEXP indices, SEXP nArg, SEXP nomatch)
1717
const int inomatch = isNull(nomatch) ? 0 : INTEGER(nomatch)[0];
1818
int *inewstarts = INTEGER(newstarts);
1919

20-
memset(inewlen, 0, n * sizeof(*inewlen));
20+
for (int i = 0; i < n; i++) inewlen[i] = 0;
2121

2222
// simplifying logic ... also fixes #2275
2323
for (int i = 0; i < length(indices); i++) {

0 commit comments

Comments
 (0)