Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-63410

Coverity analysis defect 121444: Array compared against 0

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • ALL
    • QO 2022-02-21, QO 2022-03-07, QO 2022-03-21, QO 2022-04-04, QO 2022-04-18

      Array compared against 0

      The address of an array is never NULL, so the comparison will always evaluate the same way. Array compared against NULL pointer
      /src/mongo/db/query/optimizer/props.cpp:176: NO_EFFECT 121444 Comparing an array to null is not useful: """", since the test will always evaluate as true.

            Assignee:
            timour.katchaounov@mongodb.com Timour Katchaounov
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: