mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-26 04:02:09 +01:00
Check object path validity during completion inside print_paths.
Closes #344 Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
This commit is contained in:
parent
742e55b754
commit
43c2d747a3
@ -250,6 +250,11 @@ print_paths (GDBusConnection *c,
|
|||||||
g_printerr (_("Error: %s is not a valid name\n"), name);
|
g_printerr (_("Error: %s is not a valid name\n"), name);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
if (!g_variant_is_object_path (path))
|
||||||
|
{
|
||||||
|
g_printerr (_("Error: %s is not a valid object path\n"), path);
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
error = NULL;
|
error = NULL;
|
||||||
result = g_dbus_connection_call_sync (c,
|
result = g_dbus_connection_call_sync (c,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user