diff --git a/extlib/xhash/xhash.h b/extlib/xhash/xhash.h index 038d4027..b20af2c3 100644 --- a/extlib/xhash/xhash.h +++ b/extlib/xhash/xhash.h @@ -53,7 +53,7 @@ xh_get(struct xhash *x, const char *key) idx = xh_hash(key) % x->size; for (e = x->buckets[idx]; e; e = e->next) { - if (! strcmp(key, e->key)) + if (strcmp(key, e->key) == 0) return e; } return NULL;