commit | cdc7f1936e07f3b51aaa96c589e43abd7fea0051 | [log] [tgz] |
---|---|---|
author | gurudas pai <gurudas.pai@oracle.com> | Thu Mar 29 10:10:56 2007 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Thu Mar 29 10:10:56 2007 +0200 |
tree | 06360638862eccb1ee5393ff41af932f4479c8ce | |
parent | 993cca043fddf1bf674ddd19f7896db87934ce0f [diff] [blame] |
Fix parsing of job section with preceeding space We need to strip the blank spaces from the front. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/init.c b/init.c index 520f7f0..51b9fa1 100644 --- a/init.c +++ b/init.c
@@ -545,6 +545,9 @@ 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)