mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-04 07:27:26 +01:00
Problem: test_srcfd uses unitialised memory
Solution: memset temporary buffer before use to reduce Valgrind noise
This commit is contained in:
parent
302c7bee50
commit
240190131c
@ -62,6 +62,7 @@ int main (void)
|
||||
assert (rc == 0);
|
||||
|
||||
char tmp[MSG_SIZE];
|
||||
memset (tmp, 0, MSG_SIZE);
|
||||
zmq_send(req, tmp, MSG_SIZE, 0);
|
||||
|
||||
zmq_msg_t msg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user