commit | 1f1c3eb8439694b654f51860e5f3ccd6bb56aa24 | [log] [tgz] |
---|---|---|
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | Mon Sep 05 12:36:44 2016 +0300 |
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | Mon Sep 05 12:36:44 2016 +0300 |
tree | 1655f16f0235563e51df2fb1509a1fb73acbef15 | |
parent | 16f6ec984ea2b802d13cce07964ce386f3dcf3dc [diff] |
core/gatt-client: Don't invalidate Value if length is 0 Reading 0 bytes shall be valid so it shouldn't invalidate the property.
diff --git a/src/gatt-client.c b/src/gatt-client.c index 57a1f66..114981c 100644 --- a/src/gatt-client.c +++ b/src/gatt-client.c
@@ -184,7 +184,7 @@ { gboolean *ret = user_data; - if (err || length == 0) { + if (err) { *ret = FALSE; return; }