Match va_start and va_end calls, pointed by clang-tidy
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
This commit is contained in:
parent
a407c10b02
commit
9ab7889639
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,7 @@ static int zmq_send_multipart(void *sock, const void* data, size_t size, ...)
|
||||||
int rc = zmq_msg_init_size(&msg, size);
|
int rc = zmq_msg_init_size(&msg, size);
|
||||||
if (rc != 0)
|
if (rc != 0)
|
||||||
{
|
{
|
||||||
|
va_end(args);
|
||||||
zmqError("Unable to initialize ZMQ msg");
|
zmqError("Unable to initialize ZMQ msg");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -34,6 +35,7 @@ static int zmq_send_multipart(void *sock, const void* data, size_t size, ...)
|
||||||
rc = zmq_msg_send(&msg, sock, data ? ZMQ_SNDMORE : 0);
|
rc = zmq_msg_send(&msg, sock, data ? ZMQ_SNDMORE : 0);
|
||||||
if (rc == -1)
|
if (rc == -1)
|
||||||
{
|
{
|
||||||
|
va_end(args);
|
||||||
zmqError("Unable to send ZMQ msg");
|
zmqError("Unable to send ZMQ msg");
|
||||||
zmq_msg_close(&msg);
|
zmq_msg_close(&msg);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -46,6 +48,7 @@ static int zmq_send_multipart(void *sock, const void* data, size_t size, ...)
|
||||||
|
|
||||||
size = va_arg(args, size_t);
|
size = va_arg(args, size_t);
|
||||||
}
|
}
|
||||||
|
va_end(args);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue