From 05f0e19b1cab54ea5849b29b6f7aaec21e5db4b5 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 27 Jan 2010 17:45:34 -0600 Subject: [PATCH] Bug 542356: Initialize the NPError outparam passed to NPP_New() so that plugins must set it to NPERR_NO_ERROR (and so as to work around a valgrind UMR false-positive for OOPP). r=joshmoz --- modules/plugin/base/src/nsNPAPIPluginInstance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/plugin/base/src/nsNPAPIPluginInstance.cpp b/modules/plugin/base/src/nsNPAPIPluginInstance.cpp index e70f0a53b956..32cfbf86ba11 100644 --- a/modules/plugin/base/src/nsNPAPIPluginInstance.cpp +++ b/modules/plugin/base/src/nsNPAPIPluginInstance.cpp @@ -1141,7 +1141,7 @@ nsNPAPIPluginInstance::InitializePlugin() PRInt32 mode; const char* mimetype; - NPError error; + NPError error = NPERR_GENERIC_ERROR; GetMode(&mode); GetMIMEType(&mimetype);