Fix redefinition of local variable in gio/gdbusobjectmanagerclient.c

This commit is contained in:
Loic Le Page 2022-01-19 18:31:09 +01:00 committed by Philip Withnall
parent 5223863922
commit c6a5021f48

View File

@ -1043,17 +1043,17 @@ signal_cb (GDBusConnection *connection,
{ {
if (g_strcmp0 (signal_name, "PropertiesChanged") == 0) if (g_strcmp0 (signal_name, "PropertiesChanged") == 0)
{ {
const gchar *interface_name; const gchar *properties_interface_name;
GVariant *changed_properties; GVariant *changed_properties;
const gchar **invalidated_properties; const gchar **invalidated_properties;
g_variant_get (parameters, g_variant_get (parameters,
"(&s@a{sv}^a&s)", "(&s@a{sv}^a&s)",
&interface_name, &properties_interface_name,
&changed_properties, &changed_properties,
&invalidated_properties); &invalidated_properties);
interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object_proxy), interface_name); interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object_proxy), properties_interface_name);
if (interface != NULL) if (interface != NULL)
{ {
GVariantIter property_iter; GVariantIter property_iter;