aboutsummaryrefslogtreecommitdiff
path: root/storeio/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'storeio/dev.c')
-rw-r--r--storeio/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/storeio/dev.c b/storeio/dev.c
index 8726c94c..4f48d081 100644
--- a/storeio/dev.c
+++ b/storeio/dev.c
@@ -269,7 +269,7 @@ buffered_rw (struct dev *dev, off_t offs, size_t len, size_t *amount,
{
if (len >= block_size)
{
- size_t amount;
+ size_t amount = 0;
err = dev_buf_discard (dev);
if (! err)
err =