Commit f87888f8 authored by Luca Boccassi's avatar Luca Boccassi

Problem: test_router_mandatory_hwm uses unitialised memory

Solution: memset temporary buffer before use to reduce Valgrind noise
parent cffc6535
......@@ -83,6 +83,7 @@ int main (void)
int i;
const int BUF_SIZE = 65536;
char buf[BUF_SIZE];
memset(buf, 0, BUF_SIZE);
// Send first batch of messages
for(i = 0; i < 100000; ++i) {
if (TRACE_ENABLED) fprintf(stderr, "Sending message %d ...\n", i);
......
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