[Rd] mkString (PR#866)
Wed, 7 Mar 2001 10:41:09 -0800 (PST)
On Wed, 7 Mar 2001 Timothy.Keitt@StonyBrook.Edu wrote:
> Full_Name: Tim Keitt
> Version: 1.2x
> OS: Linux
> Submission from: (NULL) (220.127.116.11)
> The function "mkString" declared in "Rinternals.h" dumps core if passed a NULL
Don't do that, then?
It's supposed to be passed a zero-terminated string, so it doesn't seem
unreasonable for it to assume that it can dereference its argument. The C
library functions don't in general accept NULL pointers as string
I suppose a check for NULL would be fairly harmless, though.
Thomas Lumley Asst. Professor, Biostatistics
email@example.com University of Washington, Seattle
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: firstname.lastname@example.org