Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@xxxxxxxxx> --- src/lib/sendmsg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/sendmsg.c b/src/lib/sendmsg.c index c2bd51029964f3bf05a512ea61d479c086f6088c..bee492134e30cbc41ecfce7117444d17c8ab9089 100644 --- a/src/lib/sendmsg.c +++ b/src/lib/sendmsg.c @@ -125,14 +125,12 @@ int sctp_sendv(int s, const struct iovec *iov, int iovcnt, { char _cmsg[CMSG_SPACE(sizeof(struct sctp_sendv_spa))]; struct cmsghdr *cmsg = (struct cmsghdr *)_cmsg; + struct msghdr outmsg = {}; struct sockaddr *addr; - struct msghdr outmsg; int len, cmsglen = 0; int err, type, i; char *addrbuf; - /* set msg_iov, msg_iovlen, msg_flags */ - memset(&outmsg, 0x00, sizeof(outmsg)); outmsg.msg_iov = (struct iovec *)iov; outmsg.msg_iovlen = iovcnt; outmsg.msg_flags = flags; -- 2.30.2