From 611c182e45cde19baba84ccffedc9119f2f0b907 Mon Sep 17 00:00:00 2001 From: Paul Bignier Date: Thu, 28 Jul 2016 01:25:00 +0200 Subject: [PATCH] Bug 1290015 - [Static Analysis][Uninitialized scalar field] In constructor SizeSpec(). r=jst --HG-- extra : rebase_source : 1cdc3a7a442674ddb993f1c1d398d4f962dc386d --- embedding/components/windowwatcher/nsWindowWatcher.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/embedding/components/windowwatcher/nsWindowWatcher.cpp b/embedding/components/windowwatcher/nsWindowWatcher.cpp index c5b8075bd862..a0cc8c948419 100644 --- a/embedding/components/windowwatcher/nsWindowWatcher.cpp +++ b/embedding/components/windowwatcher/nsWindowWatcher.cpp @@ -378,7 +378,13 @@ nsWindowWatcher::OpenWindow(mozIDOMWindowProxy* aParent, struct SizeSpec { SizeSpec() - : mLeftSpecified(false) + : mLeft(0) + , mTop(0) + , mOuterWidth(0) + , mOuterHeight(0) + , mInnerWidth(0) + , mInnerHeight(0) + , mLeftSpecified(false) , mTopSpecified(false) , mOuterWidthSpecified(false) , mOuterHeightSpecified(false)