[svn-commits] mjordan: trunk r399696 - in /trunk: ./ apps/app_queue.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Sep 24 14:22:32 CDT 2013


Author: mjordan
Date: Tue Sep 24 14:22:30 2013
New Revision: 399696

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=399696
Log:
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

Modified:
    trunk/   (props changed)
    trunk/apps/app_queue.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: trunk/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_queue.c?view=diff&rev=399696&r1=399695&r2=399696
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Tue Sep 24 14:22:30 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 svn-commits mailing list