mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-29 00:32:34 +08: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);
|
int family = get_peer_ip_address (s, peer_address);
|
||||||
if (family == 0)
|
if (family == 0)
|
||||||
peer_address = "";
|
peer_address.clear();
|
||||||
#if defined ZMQ_HAVE_SO_PEERCRED
|
#if defined ZMQ_HAVE_SO_PEERCRED
|
||||||
else
|
else
|
||||||
if (family == PF_UNIX) {
|
if (family == PF_UNIX) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user