summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authortrav90 <travawine@palemoon.org>2018-08-18 15:20:24 -0500
committertrav90 <travawine@palemoon.org>2018-08-18 15:20:24 -0500
commit0bd57efd12eaee7e05e8e04947d94e04cc0ee7f7 (patch)
treec355e03fcabafb70da4057db1a050b58444e0628 /js
parent0783f37f08a88bfa25954e8e52e259492a1da3a9 (diff)
downloaduxp-0bd57efd12eaee7e05e8e04947d94e04cc0ee7f7.tar.gz
Avoid using memset on a not-trivial type like TabSizes
Diffstat (limited to 'js')
-rw-r--r--js/public/MemoryMetrics.h8
1 files changed, 7 insertions, 1 deletions
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) {