Diff between f243bda1dd0700060ce2d397bed7788951de63e6 and 9d08490a5f653eb8e43702978d0b4ba61f349017

Changed Files

File Additions Deletions Status
android/gatt.c +1 -1 modified

Full Patch

diff --git a/android/gatt.c b/android/gatt.c
index 04972a4..2ee2d05 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -4439,7 +4439,7 @@ static void read_requested_attributes(void *data, void *user_data)
 
 done:
 	/* We have value here already if no callback will be called */
-	if (value_len >= 0)
+	if (value_len > 0)
 		fill_gatt_response(resp_data, resp_data->handle,
 					resp_data->offset, error, value_len,
 					value);