aboutsummaryrefslogtreecommitdiff
path: root/cache.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'cache.c')
-rw-r--r--cache.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/cache.c b/cache.c
index e70af13..1c843ba 100644
--- a/cache.c
+++ b/cache.c
@@ -185,8 +185,6 @@ static int lock_slot(struct cache_slot *slot)
slot->lock_fd = -1;
return saved_errno;
}
- if (ftruncate(slot->lock_fd, 0) < 0)
- return errno;
if (xwrite(slot->lock_fd, slot->key, slot->keylen + 1) < 0)
return errno;
return 0;