Commit: 82d40ad07594df2d6fc1f201c592482af0e56285
Parent: 393a65277dafd5a29387a5388fc2bad381af30dc
Author: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-04-02 14:25:41
Tree: 1a365db1cc0b1d901074cff9474192f32bcc6a23

android/avrcp: Fix clang warning Check len before memcpy(). Fixes: ... android/avrcp-lib.c:885:3: warning: Null pointer passed as an argument to a 'nonnull' parameter memcpy(&ptr[4], text[i], len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ...

Diffstat

M android/avrcp-lib.c | 5 ++++-

1 files changed, 4 insertions(+), 1 deletions(-)

View Full Diff | Patch