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.

Change-Id: I8080fbcaabad4ff280163515168e4af5cd0a7112
This commit is contained in:
Carl Shapiro
2010-03-14 23:01:17 -07:00
parent b644f85263
commit 8e3015e7aa

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;
}