summaryrefslogtreecommitdiff
path: root/enumerator.c
diff options
context:
space:
mode:
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/enumerator.c b/enumerator.c
index a366b75232..24444cdc53 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -550,6 +550,8 @@ enumerator_each(int argc, VALUE *argv, VALUE obj)
args = rb_ary_new4(argc, argv);
}
e->args = args;
+ e->size = Qnil;
+ e->size_fn = 0;
}
if (!rb_block_given_p()) return obj;
return enumerator_block_call(obj, 0, obj);