From: Maria Matejka Date: Sun, 26 Apr 2020 21:22:18 +0000 (+0200) Subject: Simple change in UDP message sending to shutup Valgrind X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6768bc568b87c4fb6f8ba48637a24cbb5642f76a;p=thirdparty%2Fbird.git Simple change in UDP message sending to shutup Valgrind --- diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index b5696ac44..ae31ce600 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -1557,8 +1557,8 @@ static inline int sk_sendmsg(sock *s) { struct iovec iov = {s->tbuf, s->tpos - s->tbuf}; - byte cmsg_buf[CMSG_TX_SPACE]; - sockaddr dst; + static _Thread_local byte cmsg_buf[CMSG_TX_SPACE] = {}; + static _Thread_local sockaddr dst = {}; int flags = 0; sockaddr_fill(&dst, s->af, s->daddr, s->iface, s->dport);