mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
hash->ht might be NULL; it shouldn't though
This commit is contained in:
+1
-1
@@ -701,7 +701,7 @@ mrb_hash_clear(mrb_state *mrb, mrb_value hash)
|
||||
{
|
||||
khash_t(ht) *h = RHASH_TBL(hash);
|
||||
|
||||
kh_clear(ht, h);
|
||||
if (h) kh_clear(ht, h);
|
||||
return hash;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user