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

This commit is contained in:
Chris Jones 2010-01-27 17:45:34 -06:00
Родитель 58eaecd2cd
Коммит 05f0e19b1c
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1141,7 +1141,7 @@ nsNPAPIPluginInstance::InitializePlugin()
PRInt32 mode;
const char* mimetype;
NPError error;
NPError error = NPERR_GENERIC_ERROR;
GetMode(&mode);
GetMIMEType(&mimetype);