mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
Minor file.c cleanup for valgrind, log PRI event properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
file.c
2
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) {
|
||||
|
Reference in New Issue
Block a user