Commit 8d0cc57a authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

hash->ht might be NULL; it shouldn't though

parent 090e896d
......@@ -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;
}
......
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