commit | 2c57d32b7fa6a0549cc647842f77b2aa49178258 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Tue Nov 18 19:16:06 2014 -0700 |
committer | Mohamad Ayyash <mkayyash@google.com> | Fri Mar 06 17:58:04 2015 -0800 |
tree | 6b76cf745cabeced8f6e673aab11ff2b5df74c53 | |
parent | 4d6922b77db7109369f0499506cf2cf7a62aba45 [diff] |
verify: allow empty/no trigger file If we use a trigger timeout, we don't need the file. Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/init.c b/init.c index c7fdcdd..108f2b8 100644 --- a/init.c +++ b/init.c
@@ -2212,8 +2212,10 @@ } sz = split - optarg; - trigger_file = calloc(1, sz + 1); - strncpy(trigger_file, optarg, sz); + if (sz) { + trigger_file = calloc(1, sz + 1); + strncpy(trigger_file, optarg, sz); + } split++; cmd = trigger_cmd = strdup(split);