aboutsummaryrefslogtreecommitdiffstats
path: root/apps
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 /apps
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 'apps')
-rwxr-xr-xapps/app_dial.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 5b5711ab0..dbbd5c765 100755
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -347,7 +347,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
}
} else if (o->chan && (o->chan == winner)) {
if (!ast_strlen_zero(o->chan->call_forward)) {
- char tmpchan[256]="";
+ char tmpchan[256];
char *stuff;
char *tech;
ast_copy_string(tmpchan, o->chan->call_forward, sizeof(tmpchan));
@@ -626,8 +626,8 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
int res=-1;
struct localuser *u;
char *info, *peers, *timeout, *tech, *number, *rest, *cur;
- char privdb[256] = "", *s;
- char privcid[256] = "";
+ char privdb[256], *s;
+ char privcid[256];
char privintro[1024];
char announcemsg[256] = "", *ann;
struct localuser *outgoing=NULL, *tmp;
@@ -668,7 +668,7 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
char *dtmfcalled=NULL, *dtmfcalling=NULL;
char *stack,*var;
char *mac = NULL, *macroname = NULL;
- char status[256]="";
+ char status[256];
char toast[80];
int play_to_caller=0,play_to_callee=0;
int playargs=0, sentringing=0, moh=0;
@@ -1102,7 +1102,7 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
}
pbx_builtin_setvar_helper(tmp->chan, "DIALEDPEERNUMBER", numsubst);
if (!ast_strlen_zero(tmp->chan->call_forward)) {
- char tmpchan[256]="";
+ char tmpchan[256];
char *stuff;
char *tech;
ast_copy_string(tmpchan, tmp->chan->call_forward, sizeof(tmpchan));