[asterisk-commits] mjordan: branch 12 r399695 - /branches/12/apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Sep 24 14:22:15 CDT 2013
Author: mjordan
Date: Tue Sep 24 14:22:13 2013
New Revision: 399695
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=399695
Log:
app_queue: Don't be quite so aggressive in initializing the array
We only need the first character.
Modified:
branches/12/apps/app_queue.c
Modified: branches/12/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/apps/app_queue.c?view=diff&rev=399695&r1=399694&r2=399695
==============================================================================
--- branches/12/apps/app_queue.c (original)
+++ branches/12/apps/app_queue.c Tue Sep 24 14:22:13 2013
@@ -5910,9 +5910,11 @@
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));
More information about the asterisk-commits
mailing list