aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authorbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-25 13:51:44 +0000
committerbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-25 13:51:44 +0000
commitc149081a4bf4f37a3ce20efa1fea3fd3f6d1610a (patch)
tree96d174cb10813f2f2e329002c702a7c37fc470dc /apps/app_queue.c
parent4e84a6faa6f8b497912dac9f76c7e885c63e9b3b (diff)
Making sure a char ptr is initialized before we strchr on it is a GOOD thing. Ya! Testing!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30194 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r--apps/app_queue.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 9b75d11d0..d42f20e85 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -2389,14 +2389,15 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce
ast_log(LOG_WARNING, "monitor-format (in queues.conf) and MONITOR_FILENAME cannot contain a '|'! Not recording.\n");
mixmonapp = NULL;
}
+
+ if (!monitor_options)
+ monitor_options = ast_strdupa("");
if (strchr(monitor_options, '|')) {
ast_log(LOG_WARNING, "MONITOR_OPTIONS cannot contain a '|'! Not recording.\n");
mixmonapp = NULL;
}
- if (!monitor_options)
- monitor_options = ast_strdupa("");
if (mixmonapp) {
if (!ast_strlen_zero(monitor_exec) && !ast_strlen_zero(monitor_options))