*** CID 1369053: Code maintainability issues (UNUSED_VALUE)
|
/bench/wtperf/wtperf.c: 2558 in main()
|
2552 append_comma = ",";
|
2553 }
|
2554 if (opts->verbose > 1 && strlen(debug_cconfig) != 0) {
|
2555 pos += (size_t)snprintf(
|
2556 cc_buf + pos, req_len - pos, "%s%s",
|
2557 append_comma, debug_cconfig);
|
>>> CID 1369053: Code maintainability issues (UNUSED_VALUE)
|
>>> Assigning value from "","" to "append_comma" here, but that stored value is overwritten before it can be used.
|
2558 append_comma = ",";
|
2559 }
|
2560
|
2561 if (strlen(cc_buf) != 0 && (ret =
|
2562 config_opt_name_value(wtperf, "conn_config", cc_buf)) != 0)
|
2563 goto err;
|