Module: libav
Branch: master
Commit: 8ef98855d25e457094468e2e1a79d9b10d6445b2

Author:    Vittorio Giovara <[email protected]>
Committer: Vittorio Giovara <[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 71b3a4b..57fd044 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;

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

Reply via email to