From 356c552d4654dba6ebc8461228ab0aa728d304c2 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 14 Oct 2014 19:54:21 -0600 Subject: [PATCH] t/dedupe: fix bogus items NULL compare Signed-off-by: Jens Axboe --- t/dedupe.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/t/dedupe.c b/t/dedupe.c index 030b4fc9..b43b6773 100644 --- a/t/dedupe.c +++ b/t/dedupe.c @@ -294,8 +294,7 @@ static int do_work(struct worker_thread *thread, void *buf) for (i = 0; i < nblocks; i++) { void *thisptr = buf + (i * blocksize); - if (items) - items[i].offset = offset; + items[i].offset = offset; crc_buf(thisptr, items[i].hash); offset += blocksize; nitems++; -- 2.25.1