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

This commit is contained in:
Yukihiro Matsumoto
2012-06-02 23:50:34 +09:00
parent 090e896d48
commit 8d0cc57a43
+1 -1
View File
@@ -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;
}