From ff1a56054763b8642f51a6d9fe842222d4e1fbc7 Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Mon, 30 Oct 2017 18:10:25 +0300 Subject: [PATCH] Add NULLADDR to prevent dynamic linkage error under Linux --- src/plugins/TransparentPlugin/transparent_plugin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/TransparentPlugin/transparent_plugin.c b/src/plugins/TransparentPlugin/transparent_plugin.c index 9cebd94..cc8b06a 100644 --- a/src/plugins/TransparentPlugin/transparent_plugin.c +++ b/src/plugins/TransparentPlugin/transparent_plugin.c @@ -23,6 +23,7 @@ extern "C" { #endif +static char* NULLADDR="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; static struct pluginlink * pl; @@ -101,6 +102,7 @@ static struct commands transparent_commandhandlers[] = { #define PLUGINCALL #endif + PLUGINAPI int PLUGINCALL transparent_plugin (struct pluginlink * pluginlink, int argc, char** argv){ pl = pluginlink;