diff options
author | Mark Spencer <markster@digium.com> | 2004-06-04 18:30:35 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-06-04 18:30:35 +0000 |
commit | 0062fe9588f94dbd6b5e11e84f4bb2f171738829 (patch) | |
tree | 6f82f246e641514ddf7f3f9e1b6d3b00942ffae8 /res | |
parent | 103bb4a33480fe9f7e484a851deaef458a40a69b (diff) |
IAX2 fixup, fix res_monitor sillyseg
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3144 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rwxr-xr-x | res/res_monitor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_monitor.c b/res/res_monitor.c index 56eaaf956..3f85b1f1e 100755 --- a/res/res_monitor.c +++ b/res/res_monitor.c @@ -172,7 +172,7 @@ int ast_monitor_start( struct ast_channel *chan, const char *format_spec, /* Stop monitoring a channel */ int ast_monitor_stop( struct ast_channel *chan, int need_lock ) { - char *execute=NULL; + char *execute; int soxmix =0; if(need_lock) { if(ast_mutex_lock(&chan->lock)) { @@ -219,7 +219,7 @@ int ast_monitor_stop( struct ast_channel *chan, int need_lock ) } } - if (chan->monitor->joinfiles && !ast_strlen_zero(execute) && strlen(chan->monitor->filename_base)) { + if (chan->monitor->joinfiles && strlen(chan->monitor->filename_base)) { char tmp[1024]; char tmp2[1024]; char *format = !strcasecmp(chan->monitor->format,"wav49") ? "WAV" : chan->monitor->format; |