diff options
author | Russell Bryant <russell@russellbryant.com> | 2012-03-14 23:12:42 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2012-03-14 23:12:42 +0000 |
commit | 69f19a522565938d8e6597edbe9b1f6a3ac3780f (patch) | |
tree | d6774faa56b7749c301d215ca263f635bfb7a623 /main/udptl.c | |
parent | 28881524dc62717a63df3f4780173b798f2802ee (diff) |
udptl: Ensure fec[] in udptl_build_packet() is initialized.
Scan results indicated that this array could be used uninitialized. At a quick
look, it looks correct. In any case, initializing it is a Good Thing (tm).
........
Merged revisions 359457 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 359458 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@359459 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/udptl.c')
-rw-r--r-- | main/udptl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/udptl.c b/main/udptl.c index 94c53658d..0a6fe4867 100644 --- a/main/udptl.c +++ b/main/udptl.c @@ -520,7 +520,7 @@ static int udptl_rx_packet(struct ast_udptl *s, uint8_t *buf, unsigned int len) static int udptl_build_packet(struct ast_udptl *s, uint8_t *buf, unsigned int buflen, uint8_t *ifp, unsigned int ifp_len) { - uint8_t fec[LOCAL_FAX_MAX_DATAGRAM * 2]; + uint8_t fec[LOCAL_FAX_MAX_DATAGRAM * 2] = { 0, }; int i; int j; int seq; |