Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv31455/apps
Modified Files:
app_dial.c
Log Message:
remove useless buffer initializations (issue #5134)
convert pbx_dundi to use ast_copy_string) (issue #5134)
Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.165
retrieving revision 1.166
diff -u -d -r1.165 -r1.166
--- app_dial.c 7 Sep 2005 19:13:00 -0000 1.165
+++ app_dial.c 7 Sep 2005 21:01:31 -0000 1.166
@@ -347,7 +347,7 @@
}
} 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 @@
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 @@
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 @@
}
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));
_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs