projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b167b0
)
Avoid a segfault in gdbus tool
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 26 May 2013 03:07:03 +0000
(23:07 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 26 May 2013 03:15:36 +0000
(23:15 -0400)
When the interface name is invalid, we don't get an error
back from g_dbus_connection_call_sync.
gio/gdbus-tool.c
patch
|
blob
|
history
diff --git
a/gio/gdbus-tool.c
b/gio/gdbus-tool.c
index
01a6c68
..
2714dd7
100644
(file)
--- a/
gio/gdbus-tool.c
+++ b/
gio/gdbus-tool.c
@@
-1017,8
+1017,11
@@
handle_call (gint *argc,
&error);
if (result == NULL)
{
- g_printerr (_("Error: %s\n"), error->message);
- g_error_free (error);
+ if (error)
+ {
+ g_printerr (_("Error: %s\n"), error->message);
+ g_error_free (error);
+ }
if (in_signature_types != NULL)
{
GString *s;