Backed out #1798728 due to regression pointed out by Josh Cherry on swig-user
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10196 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
da509bd641
commit
54e6571299
2 changed files with 4 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
|||
SWIGINTERN int
|
||||
SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc)
|
||||
{
|
||||
if (SvOK(obj)) {
|
||||
if (SvPOK(obj)) {
|
||||
STRLEN len = 0;
|
||||
char *cstr = SvPV(obj, len);
|
||||
size_t size = len + 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue