From d8c58ca6c8c00839eb37ef1dbfedee2b8609fe91 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Thu, 8 Dec 2005 01:05:43 +0000 Subject: [PATCH] initialize the buffer before using it... git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7386 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- pbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbx.c b/pbx.c index e89e7e6af4..5a95e9a05d 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