aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_agent.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-18 13:59:01 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-18 13:59:01 +0000
commitd8ab156cbac8f3e2da7cc769984a17fbf4b68ac3 (patch)
tree93b136248943175c38f6cfb3bb8d407d5f100d73 /channels/chan_agent.c
parentfb112da85340aa1a20433e670f3600824e1da7e5 (diff)
Minor code tweaks. Variables were being checked wrong in some situations and didn't need to be checked in others.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75566 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_agent.c')
-rw-r--r--channels/chan_agent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c
index cda841fa5..d1231556e 100644
--- a/channels/chan_agent.c
+++ b/channels/chan_agent.c
@@ -390,10 +390,10 @@ static int __agent_start_monitoring(struct ast_channel *ast, struct agent_pvt *p
/* substitute . for - */
if ((pointer = strchr(filename, '.')))
*pointer = '-';
- snprintf(tmp, sizeof(tmp), "%s%s",savecallsin ? savecallsin : "", filename);
+ snprintf(tmp, sizeof(tmp), "%s%s", savecallsin, filename);
ast_monitor_start(ast, recordformat, tmp, needlock, X_REC_IN | X_REC_OUT);
ast_monitor_setjoinfiles(ast, 1);
- snprintf(tmp2, sizeof(tmp2), "%s%s.%s", urlprefix ? urlprefix : "", filename, recordformatext);
+ snprintf(tmp2, sizeof(tmp2), "%s%s.%s", urlprefix, filename, recordformatext);
#if 0
ast_verbose("name is %s, link is %s\n",tmp, tmp2);
#endif