Commit 742f8575 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2444 from take-cheeze/fix_mrb_hash_tbl

Always return non-NULL in `mrb_hash_tbl`.
parents d2910a16 77aefa1d
......@@ -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