diff options
Diffstat (limited to 'ext/stringio/stringio.c')
-rw-r--r-- | ext/stringio/stringio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index fb2eddaa7e..ba6512366a 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -52,9 +52,8 @@ static void strio_mark(void *p) { struct StringIO *ptr = p; - if (ptr) { - rb_gc_mark(ptr->string); - } + + rb_gc_mark(ptr->string); } static void |