[SERVER-24356] Coverity analysis defect 99581: UNUSED_VALUE Created: 02/Jun/16  Updated: 19/Jul/16  Resolved: 11/Jul/16

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: None
Fix Version/s: 3.3.10

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Waley Chen
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 17 (07/15/16)
Participants:

 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;


Generated at Thu Feb 08 04:06:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.