Commit 17785f40 authored by antirez's avatar antirez
Browse files

dictScan(): empty hash table requires special handling.

parent 7f063b1c
......@@ -754,6 +754,8 @@ unsigned long dictScan(dict *d,
unsigned long s0, s1;
unsigned long m0, m1;
if (dictSize(d) == 0) return 0;
if (!dictIsRehashing(d)) {
t0 = &(d->ht[0]);
m0 = t0->sizemask;
......
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