Coverity analysis defect 99581: UNUSED_VALUE

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.3.10
    • Affects Version/s: None
    • Component/s: Networking
    • None
    • Fully Compatible
    • ALL
    • Platforms 17 (07/15/16)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      UNUSED_VALUE

      Defect 99581 (STATIC_C)
      Checker UNUSED_VALUE (subcategory adjacent)
      File: /src/mongo/transport/session.cpp
      Function mongo::transport::Session::operator =(mongo::transport::Session&&)
      /src/mongo/transport/session.cpp, line: 69
      Overwriting previous write to "this->_tl" with value "NULL".

              _tl = nullptr;
      

      /src/mongo/transport/session.cpp, line: 68
      Assigning value from "other._tl" to "this->_tl" here, but that stored value is overwritten before it can be used.

              _tl = other._tl;
      

            Assignee:
            Waley Chen (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: