diff options
-rw-r--r-- | apps/plugin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index ae698c3432..c1796ac1d2 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -322,6 +322,9 @@ int plugin_load(const char* plugin, void* parameter) | |||
322 | splash(HZ*2, true, buf); | 322 | splash(HZ*2, true, buf); |
323 | return fd; | 323 | return fd; |
324 | } | 324 | } |
325 | |||
326 | /* zero out plugin buffer to ensure a properly zeroed bss area */ | ||
327 | memset(pluginbuf, 0, PLUGIN_BUFFER_SIZE); | ||
325 | 328 | ||
326 | plugin_start = (void*)&pluginbuf; | 329 | plugin_start = (void*)&pluginbuf; |
327 | plugin_size = read(fd, plugin_start, PLUGIN_BUFFER_SIZE); | 330 | plugin_size = read(fd, plugin_start, PLUGIN_BUFFER_SIZE); |