From: Jens Axboe Date: Fri, 13 Nov 2009 11:33:54 +0000 (+0100) Subject: Only do math on known keywords X-Git-Tag: fio-1.36-rc1~16 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=7a958bd5974368e97058ab17ea94611e4d723da0;p=fio.git Only do math on known keywords Signed-off-by: Jens Axboe --- diff --git a/options.c b/options.c index 211bca74..4544378e 100644 --- a/options.c +++ b/options.c @@ -1880,13 +1880,15 @@ static char *fio_keyword_replace(char *opt) */ opt = new; free(o_org); + + /* + * Check for potential math and invoke bc, if possible + */ + opt = bc_calc(opt); } } - /* - * Check for potential math and invoke bc, if possible - */ - return bc_calc(opt); + return opt; } int fio_options_parse(struct thread_data *td, char **opts, int num_opts)