diff options
author | gitjackolantern <scottjconover@yahoo.com> | 2016-12-12 00:18:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-12 00:18:08 -0800 |
commit | 97efd293491ad7ec96a655665339908f2478b3d1 (patch) | |
tree | e9bcf64d1fb4ad924d53e60331423ce095b5c1ec | |
parent | 32a06d6429a7c913b74d3d3e30653d52294aee02 (diff) | |
parent | 5e442a407494275e80828116186660abd3db1599 (diff) | |
download | bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1.tar.gz |
Merge pull request #12 from keaton-freude/bt-obex-fix
Fix proxy_return value check in obex_client.c
-rw-r--r-- | src/lib/bluez/obex/obex_client.c | 2 |
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); |