[xhash] cleanpu

This commit is contained in:
Yuichi Nishiwaki 2013-11-26 08:23:58 -08:00
parent bfa8b84b0e
commit ce3e2b939c
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ xh_get(struct xhash *x, const char *key)
idx = xh_hash(key) % x->size; idx = xh_hash(key) % x->size;
for (e = x->buckets[idx]; e; e = e->next) { for (e = x->buckets[idx]; e; e = e->next) {
if (! strcmp(key, e->key)) if (strcmp(key, e->key) == 0)
return e; return e;
} }
return NULL; return NULL;