Skip to content

Commit

Permalink
Fix V815 Decreased performance. Consider replacing the expression 'pe…
Browse files Browse the repository at this point in the history
…er_address = ""' with 'peer_address.clear()'. stream_engine.cpp 99
  • Loading branch information
pavel-pimenov committed Oct 9, 2014
1 parent 0e3d40c commit 18ee219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stream_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 18ee219

Please sign in to comment.