diff options
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -4529,7 +4529,8 @@ rlimit_resource_type(VALUE rtype) switch (TYPE(rtype)) { case T_SYMBOL: - name = RSTRING_PTR(rb_sym2str(rtype)); + v = rb_sym2str(rtype); + name = RSTRING_PTR(v); break; default: @@ -4564,7 +4565,8 @@ rlimit_resource_value(VALUE rval) switch (TYPE(rval)) { case T_SYMBOL: - name = RSTRING_PTR(rb_sym2str(rval)); + v = rb_sym2str(rval); + name = RSTRING_PTR(v); break; default: |