Fix problem with --section matching

Strip the ']' at the end before doing section matching, otherwise
the strcmp() fails.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/init.c b/init.c
index 69941b2..9cc03e8 100644
--- a/init.c
+++ b/init.c
@@ -776,6 +776,8 @@
 			break;
 		}
 
+		name[strlen(name) - 1] = '\0';
+
 		if (skip_this_section(name)) {
 			inside_skip = 1;
 			continue;
@@ -784,8 +786,6 @@
 
 		global = !strncmp(name, "global", 6);
 
-		name[strlen(name) - 1] = '\0';
-
 		if (dump_cmdline) {
 			if (first_sect)
 				log_info("fio ");