From 381a76fa3116ecdeea8149933208d3894987e65e 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 e70f0a53b95..32cfbf86ba1 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);