Diff between 24efc486ca3391e7f4b9fc1fdded5cfeb85beabd and 49cc4676c6f63152f34b778605ef3463f4f15576
Changed Files
| File | Additions | Deletions | Status |
| android/avrcp-lib.c | +1 | -1 | modified |
Full Patch
diff --git a/android/avrcp-lib.c b/android/avrcp-lib.c
index d4e3f44..679bc2a 100644
--- a/android/avrcp-lib.c
+++ b/android/avrcp-lib.c
@@ -1822,7 +1822,7 @@ static int parse_value(struct avrcp_header *pdu, uint8_t *number,
*/
if (*number > AVRCP_ATTRIBUTE_LAST ||
1 + *number * 2 != pdu->params_len) {
- number = 0;
+ *number = 0;
return -EPROTO;
}