summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-04-14 13:16:10 -0600
committerJens Axboe <axboe@fb.com>2014-04-14 13:16:10 -0600
commitab50817f68faf742e7725922b9225fc067275750 (patch)
treef912c713c92749fa3faf796cd399f8f4fd0beb72 /parse.c
parent088b17c58d11bab0aa17be2fb2797632e1518281 (diff)
downloadfio-ab50817f68faf742e7725922b9225fc067275750.tar.gz
fio-ab50817f68faf742e7725922b9225fc067275750.tar.bz2
parse: make it clear that 'cp' can't be NULL for o->off1
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 83c59f70..188f7282 100644
--- a/parse.c
+++ b/parse.c
@@ -624,7 +624,7 @@ static int __handle_option(struct fio_option *o, const char *ptr, void *data,
ret = 1;
for (i = 0; i < PARSE_MAX_VP; i++) {
vp = &posval[i];
- if (!vp->ival || vp->ival[0] == '\0')
+ if (!vp->ival || vp->ival[0] == '\0' || !cp)
continue;
all_skipped = 0;
if (!strncmp(vp->ival, ptr, str_match_len(vp, ptr))) {