null context segfault fix
authordyniusz <dyniusz@fb.com>
Thu, 4 May 2017 20:52:54 +0000 (13:52 -0700)
committerdyniusz <dyniusz@fb.com>
Thu, 4 May 2017 20:52:54 +0000 (13:52 -0700)
engines/null.c

index 570f75d3a19609cb59b6ac70f444e6b6d2f9b948..8a4d106be75b1879b466dd433ea2469e9bdd8c1b 100644 (file)
@@ -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 = {