From 70f1498cbd187bac9fffe7bfc903cf721f8461af Mon Sep 17 00:00:00 2001 From: markster Date: Wed, 18 Feb 2004 16:32:49 +0000 Subject: Minor file.c cleanup for valgrind, log PRI event properly git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2189 f38db490-d61c-443f-a65b-d21fe96a405b --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index 9869eb325..f9a421ed4 100755 --- a/file.c +++ b/file.c @@ -274,7 +274,7 @@ static int copy(char *infile, char *outfile) 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) { -- cgit v1.2.3