Diff between e2b210612237cf69e937ac25db7c1fdb6758ba8c and 02225cd8fb9a983814a8ae4d3e22b760bb7cec69
Changed Files
| File | Additions | Deletions | Status |
| android/bluetooth.c | +3 | -1 | modified |
Full Patch
diff --git a/android/bluetooth.c b/android/bluetooth.c
index dfc929d..8e41361 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
@@ -1160,7 +1160,9 @@ static int fill_hal_prop(void *buf, uint8_t type, uint16_t len,
prop->type = type;
prop->len = len;
- memcpy(prop->val, val, len);
+
+ if (len)
+ memcpy(prop->val, val, len);
return sizeof(*prop) + len;
}