mirror of
https://github.com/zeromq/libzmq.git
synced 2025-09-17 19:44:01 +02:00
V1001 The 'ptr' variable is assigned but is not used until the end of the function.
This commit is contained in:
parent
7afd6ab5ef
commit
51ac7d28c5
@ -166,7 +166,7 @@ void zmq::mechanism_t::make_command_with_basic_properties (
|
||||
memcpy (ptr, prefix, prefix_len);
|
||||
ptr += prefix_len;
|
||||
|
||||
ptr += add_basic_properties (
|
||||
add_basic_properties (
|
||||
ptr, command_size - (ptr - (unsigned char *) msg_->data ()));
|
||||
}
|
||||
|
||||
|
@ -137,7 +137,6 @@ int zmq::plain_client_t::produce_hello (msg_t *msg_) const
|
||||
|
||||
*ptr++ = static_cast <unsigned char> (password.length ());
|
||||
memcpy (ptr, password.c_str (), password.length ());
|
||||
ptr += password.length ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user