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