summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/struct.c b/struct.c
index 2fd7690039..d345a19d9a 100644
--- a/struct.c
+++ b/struct.c
@@ -376,8 +376,10 @@ inspect_struct(s)
rb_str_cat(str, "=", 1);
str2 = rb_inspect(RSTRUCT(s)->ptr[i]);
rb_str_cat(str, RSTRING(str2)->ptr, RSTRING(str2)->len);
+ OBJ_INFECT(str, str2);
}
rb_str_cat(str, ">", 1);
+ OBJ_INFECT(str, s);
return str;
}