Commit 77aefa1d authored by take_cheeze's avatar take_cheeze

Always return non-NULL in `mrb_hash_tbl`.

parent d2910a16
......@@ -265,7 +265,7 @@ mrb_hash_tbl(mrb_state *mrb, mrb_value hash)
khash_t(ht) *h = RHASH_TBL(hash);
if (!h) {
RHASH_TBL(hash) = kh_init(ht, mrb);
return RHASH_TBL(hash) = kh_init(ht, mrb);
}
return h;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment