summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-03-25 09:43:57 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-03-25 09:43:57 (GMT)
commit8e275f286138db88140d1643d1008f130ba7f484 (patch)
treeeea120992ae5a9c2a341e3bee336620ecdc65a6f /src/plugins
parentfd0df8f884336fc69bd0938453f9712c166f08c8 (diff)
Avoided stack overflows with empty dynamic parameters.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/plugin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c
index 1bdcf04..27f1871 100644
--- a/src/plugins/plugin.c
+++ b/src/plugins/plugin.c
@@ -260,11 +260,11 @@ GPluginModule *g_plugin_module_new(const gchar *filename)
/* Localisation des différents points d'entrée déclarés */
-#define check_plugin_symbol(mod, sym) \
- ({ \
- bool __result; \
- __result = g_module_symbol(mod, sym, (gpointer []) { 0 }); \
- __result; \
+#define check_plugin_symbol(mod, sym) \
+ ({ \
+ bool __result; \
+ __result = g_module_symbol(mod, sym, (gpointer []) { NULL }); \
+ __result; \
})