Skip to content

Commit 34db889

Browse files
author
ripley
committed
small code cleanup
git-svn-id: https://svn.r-project.org/R/trunk@87810 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent f8bdc90 commit 34db889

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/grep.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2967,7 +2967,7 @@ attribute_hidden SEXP do_regexpr(SEXP call, SEXP op, SEXP args, SEXP env)
29672967
regex_t reg;
29682968
regmatch_t regmatch[10];
29692969
R_xlen_t i, n;
2970-
Rboolean rc, igcase_opt, perl_opt, fixed_opt, useBytes;
2970+
Rboolean igcase_opt, perl_opt, fixed_opt, useBytes;
29712971
const char *spat = NULL; /* -Wall */
29722972
const wchar_t *wpat = NULL;
29732973
const char *s = NULL;
@@ -3096,7 +3096,7 @@ attribute_hidden SEXP do_regexpr(SEXP call, SEXP op, SEXP args, SEXP env)
30963096
UNPROTECT(1);
30973097
}
30983098
} else {
3099-
int cflags = REG_EXTENDED;
3099+
int rc, cflags = REG_EXTENDED;
31003100
if (igcase_opt) cflags |= REG_ICASE;
31013101
if (!use_WC)
31023102
rc = tre_regcompb(&reg, spat, cflags);
@@ -3214,6 +3214,7 @@ attribute_hidden SEXP do_regexpr(SEXP call, SEXP op, SEXP args, SEXP env)
32143214
}
32153215
}
32163216
} else {
3217+
int rc;
32173218
if (!use_WC)
32183219
rc = tre_regexecb(&reg, s, 1, regmatch, 0);
32193220
else

0 commit comments

Comments
 (0)