Преглед на файлове

Add NULLADDR to prevent dynamic linkage error under Linux

z3APA3A преди 8 години
родител
ревизия
ff1a560547
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      src/plugins/TransparentPlugin/transparent_plugin.c

+ 2 - 0
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;