We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af828a3 commit b97f872Copy full SHA for b97f872
src/nqrecreateindices.c
@@ -17,7 +17,7 @@ SEXP nqRecreateIndices(SEXP xo, SEXP len, SEXP indices, SEXP nArg, SEXP nomatch)
17
const int inomatch = isNull(nomatch) ? 0 : INTEGER(nomatch)[0];
18
int *inewstarts = INTEGER(newstarts);
19
20
- memset(inewlen, 0, n * sizeof(*inewlen));
+ for (int i = 0; i < n; i++) inewlen[i] = 0;
21
22
// simplifying logic ... also fixes #2275
23
for (int i = 0; i < length(indices); i++) {
0 commit comments