Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-3143

Coverity scan report 1369053

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • WT2.9.3, 3.4.3, 3.5.2
    • None
    • None
    • Storage 2017-02-13

    Description

      *** 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;
      

      Attachments

        Activity

          People

            keith.bostic@mongodb.com Keith Bostic (Inactive)
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: