diff --git a/talk/app/webrtc/test/mockpeerconnectionobservers.h b/talk/app/webrtc/test/mockpeerconnectionobservers.h index 606d4858a..9b06c2fa5 100644 --- a/talk/app/webrtc/test/mockpeerconnectionobservers.h +++ b/talk/app/webrtc/test/mockpeerconnectionobservers.h @@ -123,7 +123,7 @@ class MockStatsObserver : public webrtc::StatsObserver { virtual void OnComplete(const StatsReports& reports) { ASSERT(!called_); called_ = true; - memset(&stats_, sizeof(stats_), 0); + memset(&stats_, 0, sizeof(stats_)); stats_.number_of_reports = reports.size(); for (const auto* r : reports) { if (r->type() == StatsReport::kStatsReportTypeSsrc) {