diff options
author | Matthew Jordan <mjordan@digium.com> | 2013-09-24 19:22:30 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2013-09-24 19:22:30 +0000 |
commit | 57e652f2ac730bed6d3249ba8a8d4e317cc40be5 (patch) | |
tree | e8db9ad894f4670c4208f7e7ea1b0512d2f25ff3 /apps | |
parent | 0618d8949943f651b6e459c2bd00ced4836c7da8 (diff) |
app_queue: Don't be quite so aggressive in initializing the array
We only need the first character.
........
Merged revisions 399695 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@399696 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index e3ab53b54..8205b3b7c 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -5910,10 +5910,12 @@ static void setup_mixmonitor(struct queue_ent *qe, const char *filename) char escaped_filename[256]; char file_with_ext[256]; char mixmonargs[1512]; - char escaped_monitor_exec[1024] = "\0"; + char escaped_monitor_exec[1024]; const char *monitor_options; const char *monitor_exec; + escaped_monitor_exec[0] = '\0'; + if (filename) { escape_and_substitute(qe->chan, filename, escaped_filename, sizeof(escaped_filename)); } else { |