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;