]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 244547 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Wed, 3 Feb 2010 19:27:54 +0000 (19:27 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 3 Feb 2010 19:27:54 +0000 (19:27 +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.1@244553 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/sched.c

index 7210b9a1d23c926eff702053dcb6f4ae3dfd8fa0..a267a6eaad84847c2d2a3d94ea40a057ed72168d 100644 (file)
@@ -392,6 +392,7 @@ void ast_sched_report(struct sched_context *con, struct ast_str **buf, struct as
        struct sched *cur;
        int countlist[cbnames->numassocs + 1];
        
+       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);