diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-03 19:26:53 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-03 19:26:53 +0000 |
commit | e3ba749926066e35e6f4f69e74294b1956a3bf26 (patch) | |
tree | 7de4a973e00f555db080d4ca61c22443b9cce440 /main/sched.c | |
parent | 78d06b3e353ee8c82c3da83990f5c7cd7c9bce12 (diff) |
Initialize counters in ast_sched_report so that resulting data is not bogus.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@244547 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/sched.c')
-rw-r--r-- | main/sched.c | 1 |
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); |