summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordyniusz <dyniusz@fb.com>2017-05-04 13:52:54 -0700
committerdyniusz <dyniusz@fb.com>2017-05-04 13:52:54 -0700
commit44c9d041dc17235981f66d69983f542fbfd48ab0 (patch)
tree7cd6de16b4712d7ff2e27efaa76c6ced0c986f7b
parent966fcbd4c226d8c433b6e9f9dbd28c5efd442d82 (diff)
downloadfio-44c9d041dc17235981f66d69983f542fbfd48ab0.tar.gz
fio-44c9d041dc17235981f66d69983f542fbfd48ab0.tar.bz2
null context segfault fix
-rw-r--r--engines/null.c3
1 files changed, 1 insertions, 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 = {