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

Coverity analysis defect 99581: UNUSED_VALUE

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.3.10
    • None
    • Networking
    • None
    • Fully Compatible
    • ALL
    • Platforms 17 (07/15/16)

    Description

      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;

      Attachments

        Activity

          People

            waley.chen Waley Chen
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: