Diffstat (limited to 'cache.c')
| -rw-r--r-- | cache.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -61,9 +61,8 @@ static int open_slot(struct cache_slot *slot) if (bufz) bufkeylen = bufz - slot->buf; - if (slot->key) - slot->match = bufkeylen == slot->keylen && - !memcmp(slot->key, slot->buf, bufkeylen + 1); + slot->match = bufkeylen == slot->keylen && + !memcmp(slot->key, slot->buf, bufkeylen + 1); return 0; } |