Fix redefinition of local variable in gio/gapplicationimpl-dbus.c

This commit is contained in:
Loic Le Page 2022-01-19 18:29:13 +01:00 committed by Loïc Le Page
parent 0c1619227c
commit 3214a0f333

View File

@ -376,20 +376,20 @@ g_application_impl_attempt_primary (GApplicationImpl *impl,
if (org_gtk_Application == NULL)
{
GError *error = NULL;
GError *my_error = NULL;
GDBusNodeInfo *info;
info = g_dbus_node_info_new_for_xml (org_gtk_Application_xml, &error);
info = g_dbus_node_info_new_for_xml (org_gtk_Application_xml, &my_error);
if G_UNLIKELY (info == NULL)
g_error ("%s", error->message);
g_error ("%s", my_error->message);
org_gtk_Application = g_dbus_node_info_lookup_interface (info, "org.gtk.Application");
g_assert (org_gtk_Application != NULL);
g_dbus_interface_info_ref (org_gtk_Application);
g_dbus_node_info_unref (info);
info = g_dbus_node_info_new_for_xml (org_freedesktop_Application_xml, &error);
info = g_dbus_node_info_new_for_xml (org_freedesktop_Application_xml, &my_error);
if G_UNLIKELY (info == NULL)
g_error ("%s", error->message);
g_error ("%s", my_error->message);
org_freedesktop_Application = g_dbus_node_info_lookup_interface (info, "org.freedesktop.Application");
g_assert (org_freedesktop_Application != NULL);
g_dbus_interface_info_ref (org_freedesktop_Application);