Skip to content

Commit 938c3bb

Browse files
committed
Merge branch 'fix-1199'
* fix-1199: fix swig#1199
2 parents 991c2af + 7d2dbe3 commit 938c3bb

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)