aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-02-18 16:32:49 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-02-18 16:32:49 +0000
commit70f1498cbd187bac9fffe7bfc903cf721f8461af (patch)
tree3b857beb98c4d1f21a50f1a6eb30bf69e156587e
parent339d6b0b0cd87df5f223d95697eef210d662978e (diff)
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
-rwxr-xr-xchannels/chan_zap.c2
-rwxr-xr-xfile.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 355057329..eb4cc0500 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -6661,7 +6661,7 @@ static void *pri_dchannel(void *vpri)
x = 0;
res = ioctl(pri->fd, ZT_GETEVENT, &x);
if (x)
- printf("PRI got event: %d\n", x);
+ ast_log(LOG_NOTICE, "PRI got event: %d on span %d\n", x, pri->span);
if (option_debug)
ast_log(LOG_DEBUG, "Got event %s (%d) on D-channel for span %d\n", event2str(x), x, pri->span);
}
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) {