mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Always return non-NULL in mrb_hash_tbl.
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user