From 44c9d041dc17235981f66d69983f542fbfd48ab0 Mon Sep 17 00:00:00 2001 From: dyniusz Date: Thu, 4 May 2017 13:52:54 -0700 Subject: [PATCH] null context segfault fix --- engines/null.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engines/null.c b/engines/null.c index 570f75d3..8a4d106b 100644 --- a/engines/null.c +++ b/engines/null.c @@ -139,8 +139,7 @@ static void fio_null_cleanup(struct thread_data *td) static int fio_null_init(struct thread_data *td) { - struct null_data *nd = (struct null_data *)td->io_ops_data; - return null_init(td, &nd); + return null_init(td, (struct null_data **)&td->io_ops_data); } static struct ioengine_ops ioengine = { -- 2.25.1