aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-07 21:01:31 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-07 21:01:31 +0000
commite72564ce33cfa83769429e7bd3fec6f1542e4c69 (patch)
tree8883e9208b7c8df35119da29928dbf5cf120dad7 /pbx.c
parentb32dc41f8f95c9f48bf3bf93a215e8580a8dd163 (diff)
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
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c6
1 files changed, 3 insertions, 3 deletions
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");