iolog: always use calloc() and always init both lists
[fio.git] / iolog.h
diff --git a/iolog.h b/iolog.h
index f70eb61e6eae92edb324ed5dbea35c9e6dcb11dc..d689140f87d399a5fb220e2e3dbeca7051e00adf 100644 (file)
--- a/iolog.h
+++ b/iolog.h
@@ -296,7 +296,7 @@ extern int iolog_cur_flush(struct io_log *, struct io_logs *);
 
 static inline void init_ipo(struct io_piece *ipo)
 {
-       memset(ipo, 0, sizeof(*ipo));
+       INIT_FLIST_HEAD(&ipo->list);
        INIT_FLIST_HEAD(&ipo->trim_list);
 }