summaryrefslogtreecommitdiff
path: root/main/sched.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2010-02-03 19:26:53 +0000
committerMark Michelson <mmichelson@digium.com>2010-02-03 19:26:53 +0000
commitdbc3111652a35753225f2713352f5cb6f98a521e (patch)
tree7de4a973e00f555db080d4ca61c22443b9cce440 /main/sched.c
parentd3ae6952040e5e21c5de611ce10fe764e0bcecfa (diff)
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
Diffstat (limited to 'main/sched.c')
-rw-r--r--main/sched.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/sched.c b/main/sched.c
index 86c01143f..8699cfbab 100644
--- a/main/sched.c
+++ b/main/sched.c
@@ -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);