diff options
author | Andrey Hristov <andrey@php.net> | 2010-01-11 18:31:02 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2010-01-11 18:31:02 +0000 |
commit | 6af43eaccb85795d48ee550b95872e8ffd48b7ab (patch) | |
tree | 3e5fa79d4311f3754f1a037b7801ddfa05c85d0e /ext/mysqlnd/mysqlnd_statistics.c | |
parent | 1ea390938baf8d70987c8af266c010d4adcab0fb (diff) | |
download | php-git-6af43eaccb85795d48ee550b95872e8ffd48b7ab.tar.gz |
missed to commit in 5_3, here it comes, reusability of stats
Diffstat (limited to 'ext/mysqlnd/mysqlnd_statistics.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_statistics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_statistics.c b/ext/mysqlnd/mysqlnd_statistics.c index 3924c166ec..e52414b3e8 100644 --- a/ext/mysqlnd/mysqlnd_statistics.c +++ b/ext/mysqlnd/mysqlnd_statistics.c @@ -290,7 +290,7 @@ mysqlnd_stats_reset_triggers(MYSQLND_STATS * const stats TSRMLS_DC) DBG_ENTER("mysqlnd_stats_reset_trigger"); if (stats) { MYSQLND_STATS_LOCK(stats); - memset(stats->triggers, 0, STAT_LAST * sizeof(mysqlnd_stat_trigger)); + memset(stats->triggers, 0, stats->count * sizeof(mysqlnd_stat_trigger)); MYSQLND_STATS_UNLOCK(stats); } DBG_RETURN(ret); |