From 4beba4c5338e08614ca6f78c5b38f19d28448815 Mon Sep 17 00:00:00 2001 From: Magnus Melin Date: Sun, 11 Apr 2021 22:12:02 +0300 Subject: [PATCH] Bug 1668926 - fix member initialization in nsMessenger::nsFilePickerShownCallback::nsFilePickerShownCallback. r=benc CID 1416479 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)2. uninit_member: Non-static class member mResult is not initialized in this constructor nor in any functions that it calls. Differential Revision: https://phabricator.services.mozilla.com/D111623 --HG-- extra : rebase_source : d6bc34342d31465bdaaf2e7573959e81a5ecc746 --- mailnews/base/src/nsMessenger.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mailnews/base/src/nsMessenger.cpp b/mailnews/base/src/nsMessenger.cpp index d52eb0c0da..6aa4dfb6a2 100644 --- a/mailnews/base/src/nsMessenger.cpp +++ b/mailnews/base/src/nsMessenger.cpp @@ -288,6 +288,7 @@ NS_IMETHODIMP nsMessenger::SetDisplayCharset(const nsACString& aCharset) { NS_IMPL_ISUPPORTS(nsMessenger::nsFilePickerShownCallback, nsIFilePickerShownCallback) nsMessenger::nsFilePickerShownCallback::nsFilePickerShownCallback() { + mResult = nsIFilePicker::returnOK; mPickerDone = false; }