Module: libav
Branch: release/11
Commit: a8c2987af85e6faf1feaf1b01a2484dd1778a374

Author:    Vittorio Giovara <[email protected]>
Committer: Luca Barbato <[email protected]>
Date:      Wed Jun  3 14:16:45 2015 +0100

sctp: Always initialize outmsg struct

CC: [email protected]
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 66b31cc..9d0f1e4 100644
--- a/libavformat/sctp.c
+++ b/libavformat/sctp.c
@@ -115,7 +115,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;

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to