mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
Fix V815 Decreased performance. Consider replacing the expression 'peer_address = ""' with 'peer_address.clear()'. stream_engine.cpp 99
This commit is contained in:
parent
0e3d40c806
commit
18ee219ce7
@ -96,7 +96,7 @@ zmq::stream_engine_t::stream_engine_t (fd_t fd_, const options_t &options_,
|
||||
|
||||
int family = get_peer_ip_address (s, peer_address);
|
||||
if (family == 0)
|
||||
peer_address = "";
|
||||
peer_address.clear();
|
||||
#if defined ZMQ_HAVE_SO_PEERCRED
|
||||
else
|
||||
if (family == PF_UNIX) {
|
||||
|
Loading…
Reference in New Issue
Block a user