summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f697125)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
char **cp;
int ret = 0, is_time = 0;
char **cp;
int ret = 0, is_time = 0;
+ if (!ptr && o->type != FIO_OPT_STR_SET) {
+ fprintf(stderr, "Option %s requires an argument\n", o->name);
+ return 1;
+ }
+
switch (o->type) {
case FIO_OPT_STR: {
fio_opt_str_fn *fn = o->cb;
switch (o->type) {
case FIO_OPT_STR: {
fio_opt_str_fn *fn = o->cb;