Merged revisions 7386 via svnmerge from
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 8 Dec 2005 01:06:09 +0000 (01:06 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 8 Dec 2005 01:06:09 +0000 (01:06 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7386 | kpfleming | 2005-12-07 19:05:43 -0600 (Wed, 07 Dec 2005) | 2 lines

initialize the buffer before using it...

........

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

pbx.c

diff --git a/pbx.c b/pbx.c
index 4850cca..3ecf070 100644 (file)
--- a/pbx.c
+++ b/pbx.c
@@ -4614,7 +4614,7 @@ int ast_add_extension2(struct ast_context *con,
        int res;
        int length;
        char *p;
-       char expand_buf[VAR_BUF_SIZE];
+       char expand_buf[VAR_BUF_SIZE] = { 0, };
 
        /* if we are adding a hint, and there are global variables, and the hint
           contains variable references, then expand them