diff --git a/sysbench/sb_options.c b/sysbench/sb_options.c index 3224f7c..398adaa 100644 --- a/sysbench/sb_options.c +++ b/sysbench/sb_options.c @@ -675,9 +675,12 @@ sb_list_t *read_config(FILE *fp, sb_list_t *options) { /* Empty */ } + if (tmp[optlen] != '\0') tmp[optlen++] = '\0'; + add_value(&newopt->values, tmp); + tmp += optlen; } } }