fix seg. fault for void types

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8694 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-02-03 22:09:54 +00:00
commit 617346b91d

View file

@ -272,7 +272,10 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
return SWIG_ERROR;
}
*ptr = SWIG_TypeCast(tc, vptr);
} else {
*ptr = vptr;
}
return SWIG_OK;
}