summaryrefslogtreecommitdiff
path: root/libstore
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-03-16 16:30:46 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2008-03-16 16:30:46 +0000
commit2501d27f30a353e6acf6fa8a92bf91ec916610a2 (patch)
tree7585bd437d2147c33e5ab60d65404dd5c75f5481 /libstore
parent8aa58989d3684dce6fbeb80beec37aab3da8612d (diff)
* nbd.c (nbd_read): Initialize piecelen.
Diffstat (limited to 'libstore')
-rw-r--r--libstore/ChangeLog4
-rw-r--r--libstore/nbd.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/libstore/ChangeLog b/libstore/ChangeLog
index b915becb..8837f82b 100644
--- a/libstore/ChangeLog
+++ b/libstore/ChangeLog
@@ -1,3 +1,7 @@
+2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * nbd.c (nbd_read): Initialize piecelen.
+
2005-09-24 Roland McGrath <roland@frob.com>
* store.h (STORE_STD_CLASS): Use __attribute_used__ macro
diff --git a/libstore/nbd.c b/libstore/nbd.c
index 8bd00c4d..966a864e 100644
--- a/libstore/nbd.c
+++ b/libstore/nbd.c
@@ -199,7 +199,7 @@ nbd_read (struct store *store,
/* Read the first piece, which can go directly into the caller's buffer. */
databuf = *buf;
- databuflen = *len;
+ piecelen = databuflen = *len;
err = request_chunk (&databuf, &piecelen);
if (err)
return err;