Displaying 3 results from an estimated 3 matches for "r_blankstring".
Did you mean:
isblankstring
2001 Dec 03
0
Segfault in foreign:read.xport (PR#1192)
...Sxport.c:
590 } else {
591 c = strchr(tmpchar, ' ');
592 *c = '\0';
593 SET_STRING_ELT(VECTOR_ELT(data, k), j,
594 (c == tmpchar) ?
R_BlankString :
595 mkChar(tmpchar));
596 }
(gdb) print tmpchar
$1 = 0xb63674 "0502"
(gdb) print c
$2 = 0x0
According to the solaris man pages, strchr returns NULL if there is no
match. Changing lines 591 and 592 to add an appropriat...
2017 Jun 11
1
translateChar in NewName in bind.c
I see another thing in function 'NewName' in bind.c. In
else if (*CHAR(tag)) ,
'ans' is basically copied from 'tag'. Could the whole thing there be just the following?
ans = tag;
It seems to me that it can also replace
ans = R_BlankString;
in 'else'; so,
else if (*CHAR(tag))
and
else
can be merged to be just
else .
--------------------------------------------
Subject: translateChar in NewName in bind.c
To: r-devel at r-project.org
Date: Saturday, 10 June, 2017, 9:14 PM
In function 'NewName' in bind.c (https:...
2016 May 12
3
Suggestion: mkString(NULL) should be NA
I would like to propose that Rf_mkString(NULL) and Rf_mkChar(NULL)
return NA rather than segfault.
Case: the mkString() and mkChar() functions are convenient to wrap
strings returned by e.g. external C libraries into an R vector.
However sometimes a library returns NULL instead of a string when the
result is unavailable. In some C libraries this can happen
unexpectedly or is even undocumented.
A