diff options
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1116,7 +1116,7 @@ rb_str2cstr(str, len) { StringValue(str); if (len) *len = RSTRING(str)->len; - else if (ruby_verbose && RSTRING(str)->len != strlen(RSTRING(str)->ptr)) { + else if (RTEST(ruby_verbose) && RSTRING(str)->len != strlen(RSTRING(str)->ptr)) { rb_warn("string contains \\0 character"); } return RSTRING(str)->ptr; |