Always return non-NULL in mrb_hash_tbl.

This commit is contained in:
take_cheeze
2014-07-03 22:56:15 +09:00
parent d2910a162d
commit 77aefa1d03
+1 -1
View File
@@ -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;
}