summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Ehrenberg <dehrenberg@google.com>2012-02-22 11:48:19 +0100
committerJens Axboe <axboe@kernel.dk>2012-02-22 11:48:19 +0100
commit8e8b225d177c8e824785a87a1116309049a27a7c (patch)
tree36fae5a55894553ff07c99f74424bcff4c1eab73
parentfc0b830f419bf64fff6fee91d1d3b9e94da11091 (diff)
downloadfio-8e8b225d177c8e824785a87a1116309049a27a7c.tar.gz
fio-8e8b225d177c8e824785a87a1116309049a27a7c.tar.bz2
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>
-rw-r--r--flow.c2
1 files changed, 1 insertions, 1 deletions
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);