From 8ef98855d25e457094468e2e1a79d9b10d6445b2 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Wed, 3 Jun 2015 14:16:45 +0100 Subject: [PATCH] sctp: Always initialize outmsg struct CC: libav-stable@libav.org Bug-Id: CID 1302711 --- libavformat/sctp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/sctp.c b/libavformat/sctp.c index 71b3a4b3db..57fd04406f 100644 --- a/libavformat/sctp.c +++ b/libavformat/sctp.c @@ -116,7 +116,7 @@ static int ff_sctp_recvmsg(int s, void *msg, size_t len, struct sockaddr *from, static int ff_sctp_send(int s, const void *msg, size_t len, const struct sctp_sndrcvinfo *sinfo, int flags) { - struct msghdr outmsg; + struct msghdr outmsg = { 0 }; struct iovec iov; outmsg.msg_name = NULL;