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 6e63f5b commit 6cade31Copy full SHA for 6cade31
src/utils.c
@@ -541,7 +541,6 @@ SEXP perhapsDataTableR(SEXP x) {
541
}
542
543
SEXP frev(SEXP x, SEXP copyArg) {
544
- SEXP names;
545
if (INHERITS(x, char_dataframe))
546
error(_("'x' should not be data.frame or data.table."));
547
if (!IS_TRUE_OR_FALSE(copyArg))
@@ -628,8 +627,10 @@ SEXP frev(SEXP x, SEXP copyArg) {
628
627
default:
629
error(_("Type '%s' is not supported by frev"), type2char(TYPEOF(x)));
630
631
- names = PROTECT(getAttrib(x, R_NamesSymbol));
+
+ SEXP names = PROTECT(getAttrib(x, R_NamesSymbol));
632
nprotect++;
633
634
if (copy) {
635
SEXP klass = PROTECT(getAttrib(x, R_ClassSymbol));
636
SEXP levels = PROTECT(getAttrib(x, R_LevelsSymbol));
0 commit comments