[Asterisk-cvs] asterisk file.c,1.35,1.36

markster at lists.digium.com markster at lists.digium.com
Wed Feb 18 11:45:58 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv11982

Modified Files:
	file.c 
Log Message:
Minor file.c cleanup for valgrind, log PRI event properly


Index: file.c
===================================================================
RCS file: /usr/cvsroot/asterisk/file.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- file.c	19 Dec 2003 18:06:28 -0000	1.35
+++ file.c	18 Feb 2004 16:32:49 -0000	1.36
@@ -274,7 +274,7 @@
 static char *build_filename(char *filename, char *ext)
 {
 	char *fn;
-	char tmp[AST_CONFIG_MAX_PATH];
+	char tmp[AST_CONFIG_MAX_PATH]="";
 	snprintf(tmp,sizeof(tmp)-1,"%s/%s",(char *)ast_config_AST_VAR_DIR,"sounds");
 	fn = malloc(strlen(tmp) + strlen(filename) + strlen(ext) + 10);
 	if (fn) {




More information about the svn-commits mailing list