diff options
Diffstat (limited to 'src/hash.c')
| -rw-r--r-- | src/hash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hash.c b/src/hash.c index 6b92344c3..fd963c3de 100644 --- a/src/hash.c +++ b/src/hash.c @@ -536,6 +536,7 @@ ht_copy(mrb_state *mrb, htable *t) seg = t->rootseg; t2 = ht_new(mrb); + if (t->size == 0) return t2; while (seg) { for (i=0; i<seg->size; i++) { |
