mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Initialize counters in ast_sched_report so that resulting data is not bogus.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@244547 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -512,6 +512,7 @@ void ast_sched_report(struct sched_context *con, struct ast_str **buf, struct as | ||||
| 	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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user