summaryrefslogtreecommitdiff
path: root/libavformat/sctp.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-06-03 14:16:45 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-06-08 13:01:33 +0100
commit8ef98855d25e457094468e2e1a79d9b10d6445b2 (patch)
treeb04356345c8fabd53e4d0824677b2d322769ba5b /libavformat/sctp.c
parentcaf7be30b11288c498fae67be4741bfbf083d977 (diff)
downloadffmpeg-8ef98855d25e457094468e2e1a79d9b10d6445b2.tar.gz
sctp: Always initialize outmsg struct
CC: libav-stable@libav.org Bug-Id: CID 1302711
Diffstat (limited to 'libavformat/sctp.c')
-rw-r--r--libavformat/sctp.c2
1 files changed, 1 insertions, 1 deletions
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;