Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e3015e7 authored by Carl Shapiro's avatar Carl Shapiro
Browse files

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
parent b644f852
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }