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

markster at lists.digium.com markster at lists.digium.com
Wed Feb 18 11:46:42 CST 2004


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

Modified Files:
      Tag: v1-0_stable
	file.c 
Log Message:
Minor file cleanup for valgrind, print PRI event clearly


Index: file.c
===================================================================
RCS file: /usr/cvsroot/asterisk/file.c,v
retrieving revision 1.35
retrieving revision 1.35.2.1
diff -u -d -r1.35 -r1.35.2.1
--- file.c	19 Dec 2003 18:06:28 -0000	1.35
+++ file.c	18 Feb 2004 16:33:34 -0000	1.35.2.1
@@ -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