Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp> --- sheep/simple_store.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/sheep/simple_store.c b/sheep/simple_store.c index f264200..21b5404 100644 --- a/sheep/simple_store.c +++ b/sheep/simple_store.c @@ -51,6 +51,7 @@ static int store_write_last_sector(uint64_t oid, struct siocb *iocb) eprintf("failed to allocate memory\n"); return SD_RES_NO_MEM; } + memset(buf, 0, size); iocb->buf = buf; iocb->length = size; -- 1.7.2.5 |