From 3da0b0e27a07d81a18c434618479cd2f20b90ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hermann=20H=C3=B6hne?= Date: Mon, 22 Apr 2024 19:07:08 +0200 Subject: [PATCH] Initialize list of dependencies dynamically as mandated by libpurple. --- xmpp-receipts.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/xmpp-receipts.c b/xmpp-receipts.c index 666f7c7..85cf534 100644 --- a/xmpp-receipts.c +++ b/xmpp-receipts.c @@ -343,8 +343,6 @@ plugin_unload(PurplePlugin *plugin) return TRUE; } -static GList dep = {"prpl-jabber",NULL,NULL}; - static PurplePluginInfo info = { PURPLE_PLUGIN_MAGIC, @@ -353,7 +351,7 @@ static PurplePluginInfo info = PURPLE_PLUGIN_STANDARD, /**< type */ PIDGIN_PLUGIN_TYPE, /**< ui_requirement */ 0, /**< flags */ - &dep, /**< dependencies */ + NULL, /**< dependencies */ PURPLE_PRIORITY_LOWEST, /**< priority */ "gtk-xmpp-receipts", /**< id */ @@ -385,8 +383,7 @@ static PurplePluginInfo info = static void init_plugin(PurplePlugin *plugin) { - - +plugin->info->dependencies = g_list_append(plugin->info->dependencies, "prpl-jabber"); } PURPLE_INIT_PLUGIN(xmppconsole, init_plugin, info)