Skip to content

Correct initialization of externalptr#11

Open
MichaelChirico wants to merge 1 commit intoazureblue:masterfrom
MichaelChirico:patch-1
Open

Correct initialization of externalptr#11
MichaelChirico wants to merge 1 commit intoazureblue:masterfrom
MichaelChirico:patch-1

Conversation

@MichaelChirico
Copy link
Copy Markdown

We recently corrected an issue where objects initialized using NULL could segfault under object.size(); tag is an SEXP, so R_NilValue is more appropriate than NULL:

https://cran.r-project.org/doc/manuals/r-devel/R-exts.html#External-pointers-and-weak-references-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant