-rw-r--r-- | cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -54,3 +54,3 @@ static int open_slot(struct cache_slot *slot) | |||
54 | slot->bufsize = read(slot->cache_fd, slot->buf, sizeof(slot->buf)); | 54 | slot->bufsize = read(slot->cache_fd, slot->buf, sizeof(slot->buf)); |
55 | if (slot->bufsize == 0) | 55 | if (slot->bufsize < 0) |
56 | return errno; | 56 | return errno; |