Merge "Replace all uses of bzero with memset. Bzero and memset are both compiler built-ins so this change should not negatively effect the generated code. However, a forthcoming commit will remove the implicit include of strings.h from stdlib.h and bzero will no longer be visible in these translation units without additional includes."

This commit is contained in:
Carl Shapiro
2010-03-15 15:21:33 -07:00
committed by Android (Google) Code Review

View File

@@ -142,7 +142,7 @@ NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
if (browser->version >= 14) {
instance->pdata = browser->createobject (instance, getPluginClass());
obj = static_cast<PluginObject*>(instance->pdata);
bzero(obj, sizeof(*obj));
memset(obj, 0, sizeof(*obj));
} else {
return NPERR_GENERIC_ERROR;
}