Merged revisions 89301 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 15 Nov 2007 18:39:46 +0000 (18:39 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 15 Nov 2007 18:39:46 +0000 (18:39 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89301 | tilghman | 2007-11-15 12:23:14 -0600 (Thu, 15 Nov 2007) | 2 lines

Fix an uninitialized memory read found by valgrind

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89303 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/misdn/isdn_lib.c

index 9625428..888887d 100644 (file)
@@ -1131,7 +1131,7 @@ int setup_bc(struct misdn_bchannel *bc)
 /** IFACE **/
 int init_bc(struct misdn_stack *stack,  struct misdn_bchannel *bc, int midev, int port, int bidx,  char *msn, int firsttime)
 {
-       unsigned char buff[1025];
+       unsigned char buff[1025] = "";
        iframe_t *frm = (iframe_t *)buff;
        int ret;