From 2501d27f30a353e6acf6fa8a92bf91ec916610a2 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 16 Mar 2008 16:30:46 +0000 Subject: * nbd.c (nbd_read): Initialize piecelen. --- libstore/ChangeLog | 4 ++++ libstore/nbd.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'libstore') 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 + + * nbd.c (nbd_read): Initialize piecelen. + 2005-09-24 Roland McGrath * 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; -- cgit v1.2.3