summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdfreude <keaton.d.freude@intel.com>2016-08-18 16:20:42 -0700
committerkdfreude <keaton.d.freude@intel.com>2016-08-18 16:20:42 -0700
commit5e442a407494275e80828116186660abd3db1599 (patch)
tree62c21d9e1af2e56986eed126fabd751003c05dfc
parent193ad6bb3db7ed2ba6b93c1ab4e1e592985e5b90 (diff)
downloadbluez-tools-5e442a407494275e80828116186660abd3db1599.tar.gz
Fix proxy_return value check in obex_client.c
-rw-r--r--src/lib/bluez/obex/obex_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/bluez/obex/obex_client.c b/src/lib/bluez/obex/obex_client.c
index 02b65bb..2a4f20a 100644
--- a/src/lib/bluez/obex/obex_client.c
+++ b/src/lib/bluez/obex/obex_client.c
@@ -144,7 +144,7 @@ const gchar *obex_client_create_session(ObexClient *self, const gchar *destinati
g_assert(OBEX_CLIENT_IS(self));
const gchar *ret = NULL;
GVariant *proxy_ret = g_dbus_proxy_call_sync(self->priv->proxy, "CreateSession", g_variant_new ("(s@a{sv})", destination, args), G_DBUS_CALL_FLAGS_NONE, -1, NULL, error);
- if (proxy_ret != NULL)
+ if (proxy_ret == NULL)
return NULL;
proxy_ret = g_variant_get_child_value(proxy_ret, 0);
ret = g_variant_get_string(proxy_ret, NULL);