From: Erwan Velu Date: Mon, 22 Jul 2013 21:48:48 +0000 (+0200) Subject: core: Insure "il" is initialized in all cases X-Git-Tag: fio-2.1.2~26 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=2fdbefdd43968f3bf354a488288b9794b5f5c6bb;p=fio.git 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. --- 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;