aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_monitor.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-04 18:30:35 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-04 18:30:35 +0000
commit7cd7a61e14973526914973c50bea32faece4a9fa (patch)
tree6f82f246e641514ddf7f3f9e1b6d3b00942ffae8 /res/res_monitor.c
parent6c6c4ed386df26894ee90d52fda4ba8c2b8c788c (diff)
IAX2 fixup, fix res_monitor sillyseg
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3144 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_monitor.c')
-rwxr-xr-xres/res_monitor.c4
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;