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

Coverity analysis defect 133975: Redundant test

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • 1
    • StorEng - Defined Pipeline

      Redundant test

      By the time the program execution reaches the test of this condition there is only one possible outcome for the test. The code at the destination of this branch is not dead, either because this condition is always true or because there is at least one other branch that reaches it. Test always evaluates the same
      /src/cursor/cur_std.c:1307: DEADCODE 133975 At condition "have_action", the value of "have_action" must be equal to 1.
      /src/cursor/cur_std.c:1238: DEADCODE 133975 Condition "have_action", taking true branch. Now the value of "have_action" is equal to 1.
      /src/cursor/cur_std.c:1236: DEADCODE 133975 Assigning: "have_action" = "true".
      /src/cursor/cur_std.c:1307: DEADCODE 133975 The condition "have_action" must be true.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: