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:
parent
d3ae695204
commit
dbc3111652
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue