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

Coverity analysis defect 133975: Redundant test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • None
    • 1
    • StorEng - Defined Pipeline

    Description

      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.

      Attachments

        Activity

          People

            backlog-server-storage-engines Backlog - Storage Engines Team
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: