summaryrefslogtreecommitdiff
path: root/ext/nkf/nkf.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/nkf/nkf.c')
-rw-r--r--ext/nkf/nkf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/nkf/nkf.c b/ext/nkf/nkf.c
index 58daad11ab7..50723467cd4 100644
--- a/ext/nkf/nkf.c
+++ b/ext/nkf/nkf.c
@@ -82,6 +82,7 @@ rb_nkf_kconv(obj, opt, src)
kanji_convert(NULL);
RSTRING(dst)->ptr[output_ctr] = '\0';
RSTRING(dst)->len = output_ctr;
+ OBJ_INFECT(dst, src);
return dst;
}