Skip to content

Commit 3e59f97

Browse files
correct use of Shield
1 parent fb89148 commit 3e59f97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/include/Rcpp/DataFrame.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Rcpp{
2626

2727
namespace internal{
2828
inline SEXP empty_data_frame(){
29-
Shield<SEXP> df = Rf_allocVector(VECSXP, 0);
29+
Shield<SEXP> df( Rf_allocVector(VECSXP, 0) );
3030
Rf_setAttrib(df, R_NamesSymbol, Rf_allocVector(STRSXP, 0));
3131
Rf_setAttrib(df, R_RowNamesSymbol, Rf_allocVector(INTSXP, 0));
3232
Rf_setAttrib(df, R_ClassSymbol, Rf_mkString("data.frame"));

0 commit comments

Comments
 (0)