From 7099e9829b725b9184b317c4c14784b64b8fcf39 Mon Sep 17 00:00:00 2001 From: trav90 Date: Sat, 18 Aug 2018 15:20:24 -0500 Subject: Avoid using memset on a not-trivial type like TabSizes --- js/public/MemoryMetrics.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/public/MemoryMetrics.h b/js/public/MemoryMetrics.h index 9b5caa24b7..bbaecaec3a 100644 --- a/js/public/MemoryMetrics.h +++ b/js/public/MemoryMetrics.h @@ -37,7 +37,13 @@ struct TabSizes Other }; - TabSizes() { mozilla::PodZero(this); } + TabSizes() + : objects(0) + , strings(0) + , private_(0) + , other(0) + { + } void add(Kind kind, size_t n) { switch (kind) { -- cgit v1.2.3