From e72564ce33cfa83769429e7bd3fec6f1542e4c69 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Wed, 7 Sep 2005 21:01:31 +0000 Subject: remove useless buffer initializations (issue #5134) convert pbx_dundi to use ast_copy_string) (issue #5134) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6540 f38db490-d61c-443f-a65b-d21fe96a405b --- pbx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pbx.c') diff --git a/pbx.c b/pbx.c index 7d836d28f..a1eb07b99 100755 --- a/pbx.c +++ b/pbx.c @@ -902,7 +902,7 @@ static struct ast_exten *pbx_find_extension(struct ast_channel *chan, struct ast void pbx_retrieve_variable(struct ast_channel *c, const char *var, char **ret, char *workspace, int workspacelen, struct varshead *headp) { char *first,*second; - char tmpvar[80] = ""; + char tmpvar[80]; time_t thistime; struct tm brokentime; int offset,offset2; @@ -5362,7 +5362,7 @@ static int pbx_builtin_stripmsd(struct ast_channel *chan, void *data) static int pbx_builtin_prefix(struct ast_channel *chan, void *data) { - char newexten[AST_MAX_EXTENSION] = ""; + char newexten[AST_MAX_EXTENSION]; if (!data || ast_strlen_zero(data)) { ast_log(LOG_DEBUG, "Ignoring, since there is no prefix to add\n"); @@ -5377,7 +5377,7 @@ static int pbx_builtin_prefix(struct ast_channel *chan, void *data) static int pbx_builtin_suffix(struct ast_channel *chan, void *data) { - char newexten[AST_MAX_EXTENSION] = ""; + char newexten[AST_MAX_EXTENSION]; if (!data || ast_strlen_zero(data)) { ast_log(LOG_DEBUG, "Ignoring, since there is no suffix to add\n"); -- cgit v1.2.3