commit | e13363ebdb9d676f2fcb6e8673335557e6ce8782 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Tue Mar 13 11:18:57 2007 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Tue Mar 13 11:18:57 2007 +0100 |
tree | 47bebf71bf657e1f2220aa1a051477698232e39f | |
parent | 7b05a215c8c39b8c878297b90eba112fe9176542 [diff] [blame] |
Strip blank end/front of filenames We do this for other options. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/init.c b/init.c index ba932bf..888e68b 100644 --- a/init.c +++ b/init.c
@@ -1111,7 +1111,13 @@ td->nr_files = 0; p = str = strdup(input); + + strip_blank_front(&str); + strip_blank_end(str); + while ((fname = strsep(&str, ":")) != NULL) { + if (!strlen(fname)) + break; add_file(td, fname); td->nr_files++; }