aboutsummaryrefslogtreecommitdiffstats
path: root/binding/bluetooth-bluez.c
diff options
context:
space:
mode:
Diffstat (limited to 'binding/bluetooth-bluez.c')
-rw-r--r--binding/bluetooth-bluez.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binding/bluetooth-bluez.c b/binding/bluetooth-bluez.c
index fa6d34b..18194d5 100644
--- a/binding/bluetooth-bluez.c
+++ b/binding/bluetooth-bluez.c
@@ -241,8 +241,8 @@ GVariant *bluez_call(struct bluetooth_state *ns,
NULL, error);
bluez_decode_call_error(ns, access_type, path, method,
error);
- if (!reply) {
- if (error && *error)
+ if (!reply && error) {
+ if (*error)
g_dbus_error_strip_remote_error(*error);
AFB_ERROR("Error calling %s%s%s %s method %s",
access_type,