[asterisk-commits] rizzo: trunk r48410 - /trunk/main/manager.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Dec 12 03:36:16 MST 2006


Author: rizzo
Date: Tue Dec 12 04:36:15 2006
New Revision: 48410

URL: http://svn.digium.com/view/asterisk?view=rev&rev=48410
Log:
properly initialize a malloc'ed buffer


Modified:
    trunk/main/manager.c

Modified: trunk/main/manager.c
URL: http://svn.digium.com/view/asterisk/trunk/main/manager.c?view=diff&rev=48410&r1=48409&r2=48410
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Tue Dec 12 04:36:15 2006
@@ -2603,6 +2603,7 @@
 	if (!out)
 		return NULL;
 	tmp = out;
+	*tmp = '\0';
 	/* we want to stop when we find an empty line */
 	while (in && *in) {
 		val = strsep(&in, "\r\n");	/* mark start and end of line */



More information about the asterisk-commits mailing list