[asterisk-commits] mmichelson: trunk r244547 - /trunk/main/sched.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Feb 3 13:26:56 CST 2010


Author: mmichelson
Date: Wed Feb  3 13:26:53 2010
New Revision: 244547

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=244547
Log:
Initialize counters in ast_sched_report so that resulting data is not bogus.


Modified:
    trunk/main/sched.c

Modified: trunk/main/sched.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/sched.c?view=diff&rev=244547&r1=244546&r2=244547
==============================================================================
--- trunk/main/sched.c (original)
+++ trunk/main/sched.c Wed Feb  3 13:26:53 2010
@@ -512,6 +512,7 @@
 	int countlist[cbnames->numassocs + 1];
 	size_t heap_size;
 	
+	memset(countlist, 0, sizeof(countlist));
 	ast_str_set(buf, 0, " Highwater = %d\n schedcnt = %d\n", con->highwater, con->schedcnt);
 
 	ast_mutex_lock(&con->lock);




More information about the asterisk-commits mailing list