From 8e8b225d177c8e824785a87a1116309049a27a7c Mon Sep 17 00:00:00 2001 From: Daniel Ehrenberg Date: Wed, 22 Feb 2012 11:48:19 +0100 Subject: [PATCH] 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 --- flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow.c b/flow.c index e5c4a404..bf5eeec5 100644 --- a/flow.c +++ b/flow.c @@ -36,7 +36,7 @@ int flow_threshold_exceeded(struct thread_data *td) 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); -- 2.25.1