projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
993cca0
)
Fix parsing of job section with preceeding space
author
gurudas pai
<gurudas.pai@oracle.com>
Thu, 29 Mar 2007 08:10:56 +0000
(10:10 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Thu, 29 Mar 2007 08:10:56 +0000
(10:10 +0200)
We need to strip the blank spaces from the front.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
init.c
patch
|
blob
|
blame
|
history
diff --git
a/init.c
b/init.c
index 520f7f086e7c8289bf662efe4b107c37e54c914e..51b9fa1d04a93531d7b0ca6de1005d68376e5796 100644
(file)
--- 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;
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)
if (is_empty_or_comment(p))
continue;
if (sscanf(p, "[%255s]", name) != 1)