projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c50bdd8
)
Fix problem with --section matching
author
Jens Axboe
<jens.axboe@oracle.com>
Sat, 22 May 2010 18:43:11 +0000
(20:43 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Sat, 22 May 2010 18:43:11 +0000
(20:43 +0200)
Strip the ']' at the end before doing section matching, otherwise
the strcmp() fails.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
init.c
patch
|
blob
|
blame
|
history
diff --git
a/init.c
b/init.c
index 69941b2ea1cd3d426a88d5f1446ef1347862cd51..9cc03e89d683873e0d4d1f4b1fcbf880c9b865f0 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-776,6
+776,8
@@
static int parse_jobs_ini(char *file, int stonewall_flag)
break;
}
+ name[strlen(name) - 1] = '\0';
+
if (skip_this_section(name)) {
inside_skip = 1;
continue;
@@
-784,8
+786,6
@@
static int parse_jobs_ini(char *file, int stonewall_flag)
global = !strncmp(name, "global", 6);
- name[strlen(name) - 1] = '\0';
-
if (dump_cmdline) {
if (first_sect)
log_info("fio ");