flow: Fixing uninitialized variable
In the flow initialization code path, there was an uninitialized
variable that led to memory corruption in certain cases. This
patch should initialize the variable properly.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/flow.c b/flow.c
index e5c4a40..bf5eeec 100644
--- a/flow.c
+++ b/flow.c
@@ -36,7 +36,7 @@
static struct fio_flow *flow_get(unsigned int id)
{
- struct fio_flow *flow;
+ struct fio_flow *flow = NULL;
struct flist_head *n;
fio_mutex_down(flow_lock);