From 8e3015e7aa7007b1687a4dd39b99cc16f94b2bd1 Mon Sep 17 00:00:00 2001 From: Carl Shapiro Date: Sun, 14 Mar 2010 23:01:17 -0700 Subject: [PATCH] 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 --- tests/BrowserTestPlugin/jni/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/BrowserTestPlugin/jni/main.cpp b/tests/BrowserTestPlugin/jni/main.cpp index 87ddbc4d991cc..402a7e2db3b3d 100644 --- a/tests/BrowserTestPlugin/jni/main.cpp +++ b/tests/BrowserTestPlugin/jni/main.cpp @@ -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(instance->pdata); - bzero(obj, sizeof(*obj)); + memset(obj, 0, sizeof(*obj)); } else { return NPERR_GENERIC_ERROR; }