Problem: test_srcfd uses unitialised memory

Solution: memset temporary buffer before use to reduce Valgrind noise
This commit is contained in:
Luca Boccassi 2016-02-13 15:30:20 +00:00
parent 302c7bee50
commit 240190131c

View File

@ -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;