From e66d2a14950d866a4b677068e566c2a97e3039ae Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Fri, 28 Jun 2024 13:28:15 -0500 Subject: [PATCH] AP_Scripting: remove redundant memsets Matches current generator behavior. --- libraries/AP_Scripting/AP_Scripting_helpers.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/libraries/AP_Scripting/AP_Scripting_helpers.cpp b/libraries/AP_Scripting/AP_Scripting_helpers.cpp index 1cc2504585..380ac3ef73 100644 --- a/libraries/AP_Scripting/AP_Scripting_helpers.cpp +++ b/libraries/AP_Scripting/AP_Scripting_helpers.cpp @@ -21,7 +21,6 @@ int lua_new_Parameter(lua_State *L) { // This chunk is the same as the auto generated constructor void *ud = lua_newuserdata(L, sizeof(Parameter)); - memset(ud, 0, sizeof(Parameter)); new (ud) Parameter(); luaL_getmetatable(L, "Parameter"); lua_setmetatable(L, -2);