projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://router/data/git/fio
[fio.git]
/
fio-ini.c
diff --git
a/fio-ini.c
b/fio-ini.c
index ff121cba83e5e580db93bc632a0d947be34f8fe6..9b9262c9d8e0274528ce991190b01b365d86e523 100644
(file)
--- a/
fio-ini.c
+++ b/
fio-ini.c
@@
-487,6
+487,9
@@
static int check_int(char *p, char *name, unsigned int *val)
{
char *str;
{
char *str;
+ if (strncmp(p, name, strlen(name)))
+ return 1;
+
str = strstr(p, name);
if (!str)
return 1;
str = strstr(p, name);
if (!str)
return 1;
@@
-670,6
+673,7
@@
int parse_jobs_ini(char *file)
continue;
if (strstr(p, "["))
break;
continue;
if (strstr(p, "["))
break;
+ strip_blank_front(&p);
strip_blank_end(p);
if (!check_int(p, "prio", &prio)) {
strip_blank_end(p);
if (!check_int(p, "prio", &prio)) {