Fixing incorrect memset in mock class.
I got a linker warning, and I could see the memset was clearly incorrect since the arugment order should be ptr, value, size_t. BUG=None R=perkj@webrtc.org Review URL: https://webrtc-codereview.appspot.com/35269004 Cr-Commit-Position: refs/heads/master@{#8473} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8473 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
a5de951b37
commit
a30f007e45
@ -123,7 +123,7 @@ class MockStatsObserver : public webrtc::StatsObserver {
|
|||||||
virtual void OnComplete(const StatsReports& reports) {
|
virtual void OnComplete(const StatsReports& reports) {
|
||||||
ASSERT(!called_);
|
ASSERT(!called_);
|
||||||
called_ = true;
|
called_ = true;
|
||||||
memset(&stats_, sizeof(stats_), 0);
|
memset(&stats_, 0, sizeof(stats_));
|
||||||
stats_.number_of_reports = reports.size();
|
stats_.number_of_reports = reports.size();
|
||||||
for (const auto* r : reports) {
|
for (const auto* r : reports) {
|
||||||
if (r->type() == StatsReport::kStatsReportTypeSsrc) {
|
if (r->type() == StatsReport::kStatsReportTypeSsrc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user