diff options
Diffstat (limited to 'ext/iconv/iconv.c')
-rw-r--r-- | ext/iconv/iconv.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 1ef2a51b1b..4b1f4b5073 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -113,14 +113,10 @@ map_charset VALUE key = rb_funcall2(val, rb_intern("downcase"), 0, 0); StringValuePtr(key); if (st_lookup(RHASH(charset_map)->tbl, key, &val)) { - StringValuePtr(val); *code = val; } } - else { - StringValuePtr(val); - } - return RSTRING(val)->ptr; + return StringValuePtr(*code); } static iconv_t |