mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 07:01:09 +00:00
app_queue: Don't be quite so aggressive in initializing the array
We only need the first character. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@399695 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5910,10 +5910,12 @@ static void setup_mixmonitor(struct queue_ent *qe, const char *filename)
|
|||||||
char escaped_filename[256];
|
char escaped_filename[256];
|
||||||
char file_with_ext[256];
|
char file_with_ext[256];
|
||||||
char mixmonargs[1512];
|
char mixmonargs[1512];
|
||||||
char escaped_monitor_exec[1024] = "\0";
|
char escaped_monitor_exec[1024];
|
||||||
const char *monitor_options;
|
const char *monitor_options;
|
||||||
const char *monitor_exec;
|
const char *monitor_exec;
|
||||||
|
|
||||||
|
escaped_monitor_exec[0] = '\0';
|
||||||
|
|
||||||
if (filename) {
|
if (filename) {
|
||||||
escape_and_substitute(qe->chan, filename, escaped_filename, sizeof(escaped_filename));
|
escape_and_substitute(qe->chan, filename, escaped_filename, sizeof(escaped_filename));
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user