Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2180

Coverity analysis defect 100080: Redundant test

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 1.8.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Test always evaluates the same

      Defect 100080 (STATIC_C)
      Checker DEADCODE (subcategory redundant_test)
      File: /src/jsonsl/jsonsl.c
      Function jsonsl_jpr_new
      /src/jsonsl/jsonsl.c, line: 929
      Condition "pathret > 0", taking true branch. Now the value of "pathret" is at least 1.
      /src/jsonsl/jsonsl.c, line: 927
      At condition "pathret > 0", the value of "pathret" must be at least 1.
      /src/jsonsl/jsonsl.c, line: 925
      Assigning: "pathret" = "JSONSL_PATH_STRING".
      /src/jsonsl/jsonsl.c, line: 927
      The condition "pathret > 0" must be true.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: