From: gurudas pai Date: Thu, 29 Mar 2007 08:10:56 +0000 (+0200) Subject: Fix parsing of job section with preceeding space X-Git-Tag: fio-1.15.1~14 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=cdc7f1936e07f3b51aaa96c589e43abd7fea0051;ds=sidebyside Fix parsing of job section with preceeding space We need to strip the blank spaces from the front. Signed-off-by: Jens Axboe --- diff --git a/init.c b/init.c index 520f7f08..51b9fa1d 100644 --- a/init.c +++ b/init.c @@ -545,6 +545,9 @@ static int parse_jobs_ini(char *file, int stonewall_flag) p = fgets(string, 4095, f); if (!p) break; + + strip_blank_front(&p); + if (is_empty_or_comment(p)) continue; if (sscanf(p, "[%255s]", name) != 1)