aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-12-08 01:05:43 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-12-08 01:05:43 +0000
commit64d6bb73dbd4278d7bea66d67845f035d638ef68 (patch)
treef29cfd6d95a2c5d6eaa3281b7eba4bc350f12e52 /pbx.c
parent16524c87e00c7cd714e64bdbeee3c70a81f4a140 (diff)
initialize the buffer before using it...
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7386 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rw-r--r--pbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx.c b/pbx.c
index e89e7e6af..5a95e9a05 100644
--- a/pbx.c
+++ b/pbx.c
@@ -4652,7 +4652,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