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:
Mark Michelson 2010-02-03 19:26:53 +00:00
parent d3ae695204
commit dbc3111652
1 changed files with 1 additions and 0 deletions

View File

@ -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);