From 2fdbefdd43968f3bf354a488288b9794b5f5c6bb Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Mon, 22 Jul 2013 23:48:48 +0200 Subject: [PATCH] core: Insure "il" is initialized in all cases Prior this commit, "il" was not initialized and check_int() was supposed to setup it's value before usage. In fact, check_int() can let "il" uninitialized leading to a dprint() with a unintialized value. --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index f54dae62..d3eb2c4a 100644 --- a/parse.c +++ b/parse.c @@ -380,7 +380,7 @@ static int str_match_len(const struct value_pair *vp, const char *str) static int __handle_option(struct fio_option *o, const char *ptr, void *data, int first, int more, int curr) { - int il, *ilp; + int il=0, *ilp; fio_fp64_t *flp; long long ull, *ullp; long ul1, ul2; -- 2.25.1