]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 244547 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Wed, 3 Feb 2010 19:28:16 +0000 (19:28 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 3 Feb 2010 19:28:16 +0000 (19:28 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

........
  r244547 | mmichelson | 2010-02-03 13:26:53 -0600 (Wed, 03 Feb 2010) | 3 lines

  Initialize counters in ast_sched_report so that resulting data is not bogus.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@244555 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/sched.c

index 86c01143fa266323ab6a16b4ee4223b480dbbf7b..8699cfbabc7d62154f64a2d14a965c5ade41c910 100644 (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);