mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01:00
Fix redefinition of local variable in gio/gdbus-tool.c
This commit is contained in:
parent
4bcb7bc631
commit
0c1619227c
@ -1247,19 +1247,19 @@ handle_call (gint *argc,
|
|||||||
{
|
{
|
||||||
if (in_signature_types->len > 0)
|
if (in_signature_types->len > 0)
|
||||||
{
|
{
|
||||||
GString *s;
|
GString *str;
|
||||||
s = g_string_new (NULL);
|
str = g_string_new (NULL);
|
||||||
|
|
||||||
for (n = 0; n < in_signature_types->len; n++)
|
for (n = 0; n < in_signature_types->len; n++)
|
||||||
{
|
{
|
||||||
GVariantType *type = in_signature_types->pdata[n];
|
GVariantType *type = in_signature_types->pdata[n];
|
||||||
g_string_append_len (s,
|
g_string_append_len (str,
|
||||||
g_variant_type_peek_string (type),
|
g_variant_type_peek_string (type),
|
||||||
g_variant_type_get_string_length (type));
|
g_variant_type_get_string_length (type));
|
||||||
}
|
}
|
||||||
|
|
||||||
g_printerr ("(According to introspection data, you need to pass '%s')\n", s->str);
|
g_printerr ("(According to introspection data, you need to pass '%s')\n", str->str);
|
||||||
g_string_free (s, TRUE);
|
g_string_free (str, TRUE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
g_printerr ("(According to introspection data, you need to pass no arguments)\n");
|
g_printerr ("(According to introspection data, you need to pass no arguments)\n");
|
||||||
@ -1531,7 +1531,6 @@ dump_interface (GDBusConnection *c,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
guint n;
|
|
||||||
for (n = 0; o->properties != NULL && o->properties[n] != NULL; n++)
|
for (n = 0; o->properties != NULL && o->properties[n] != NULL; n++)
|
||||||
{
|
{
|
||||||
result = g_dbus_connection_call_sync (c,
|
result = g_dbus_connection_call_sync (c,
|
||||||
|
Loading…
Reference in New Issue
Block a user