mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
Avoid a segfault in gdbus tool
When the interface name is invalid, we don't get an error back from g_dbus_connection_call_sync.
This commit is contained in:
parent
0b167b0ae9
commit
b382c6f633
@ -1016,9 +1016,12 @@ handle_call (gint *argc,
|
|||||||
NULL,
|
NULL,
|
||||||
&error);
|
&error);
|
||||||
if (result == NULL)
|
if (result == NULL)
|
||||||
|
{
|
||||||
|
if (error)
|
||||||
{
|
{
|
||||||
g_printerr (_("Error: %s\n"), error->message);
|
g_printerr (_("Error: %s\n"), error->message);
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
|
}
|
||||||
if (in_signature_types != NULL)
|
if (in_signature_types != NULL)
|
||||||
{
|
{
|
||||||
GString *s;
|
GString *s;
|
||||||
|
Loading…
Reference in New Issue
Block a user