Coverity analysis defect 121444: Array compared against 0

XMLWordPrintableJSON

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

      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
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: