Skip to content

Commit 828b11d

Browse files
committed
protect argument
1 parent 7687508 commit 828b11d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/barrier.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ SEXP rcpp_get_stack_trace() {
121121

122122
// [[Rcpp::register]]
123123
SEXP rcpp_set_stack_trace(SEXP e) {
124+
Rcpp::Shield<SEXP> ep(e);
124125
SET_VECTOR_ELT(get_rcpp_cache(), 3, e);
125126
return R_NilValue;
126127
}

0 commit comments

Comments
 (0)