Commit 955b51df authored by Luca Boccassi's avatar Luca Boccassi

Problem: test_msg_ffn uses unitialised memory

Solution: memset temporary buffer before use to reduce Valgrind noise
parent 24019013
......@@ -57,6 +57,7 @@ int main (void) {
zmq_msg_t msg;
char hint[5];
char data[255];
memset(data, 0, 255);
memcpy(data, (void *) "data", 4);
memcpy(hint, (void *) "hint", 4);
rc = zmq_msg_init_data(&msg, (void *)data, 255, ffn, (void*)hint);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment