[asterisk-commits] file: branch 1.4 r67066 - /branches/1.4/apps/app_dial.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Jun 4 10:59:15 MST 2007


Author: file
Date: Mon Jun  4 12:59:14 2007
New Revision: 67066

URL: http://svn.digium.com/view/asterisk?view=rev&rev=67066
Log:
Initialize cidname variable to nothing since it may be used without having been touched. (issue #9661 reported by dimas)

Modified:
    branches/1.4/apps/app_dial.c

Modified: branches/1.4/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_dial.c?view=diff&rev=67066&r1=67065&r2=67066
==============================================================================
--- branches/1.4/apps/app_dial.c (original)
+++ branches/1.4/apps/app_dial.c Mon Jun  4 12:59:14 2007
@@ -549,7 +549,7 @@
 						senddialevent(in, c);
 						/* After calling, set callerid to extension */
 						if (!ast_test_flag(peerflags, OPT_ORIGINAL_CLID)) {
-							char cidname[AST_MAX_EXTENSION];
+							char cidname[AST_MAX_EXTENSION] = "";
 							ast_set_callerid(c, S_OR(in->macroexten, in->exten), get_cid_name(cidname, sizeof(cidname), in), NULL);
 						}
 					}
@@ -794,7 +794,7 @@
 	int numnochan = 0;
 	int cause;
 	char numsubst[256];
-	char cidname[AST_MAX_EXTENSION];
+	char cidname[AST_MAX_EXTENSION] = "";
 	int privdb_val = 0;
 	unsigned int calldurationlimit = 0;
 	long timelimit = 0;



More information about the asterisk-commits mailing list