Skip to content

Commit 7d2dbe3

Browse files
committed
fix swig#1199
1 parent a973125 commit 7d2dbe3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/ruby/rubyrun.swg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ SWIGRUNTIMEINLINE char *
235235
SWIG_Ruby_MangleStr(VALUE obj)
236236
{
237237
VALUE stype = rb_iv_get(obj, "@__swigtype__");
238+
if (NIL_P(stype))
239+
return NULL;
238240
return StringValuePtr(stype);
239241
}
240242

0 commit comments

Comments
 (0)