Skip to content

Commit 263e6c9

Browse files
committed
Use more concise way to initialize the error buffer.
1 parent a940911 commit 263e6c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

inst/include/cpp11/declarations.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ T& unmove(T&& t) {
2929

3030
#define BEGIN_CPP11 \
3131
SEXP err = R_NilValue; \
32-
char buf[8192]; \
33-
buf[0] = '\0'; \
32+
char buf[8192] = ""; \
3433
try {
3534
#define END_CPP11 \
3635
} \

0 commit comments

Comments
 (0)