summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-03-05 21:14:21 +0100
committerJens Axboe <jens.axboe@oracle.com>2009-03-05 21:14:21 +0100
commitb36beb6e98d0785558a05b796dc216ecd4c49c62 (patch)
tree2b82d430a24845af73dfe3514b0a68cb35ac6c3e
parent4e6ea2f1e9b7da6d7d1057670fcc19f063e46fd4 (diff)
downloadfio-b36beb6e98d0785558a05b796dc216ecd4c49c62.tar.gz
fio-b36beb6e98d0785558a05b796dc216ecd4c49c62.tar.bz2
Use strict matching for --section command line option
Don't limit to string length of passed in section, otherwise we could be matching more than one section. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r--init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.c b/init.c
index 6fdd2116..4ae3baf0 100644
--- a/init.c
+++ b/init.c
@@ -608,7 +608,7 @@ static int skip_this_section(const char *name)
if (!strncmp(name, "global", 6))
return 0;
- return strncmp(job_section, name, strlen(job_section));
+ return strcmp(job_section, name);
}
static int is_empty_or_comment(char *line)