am 596e9c63: Merge "fix valgrind ioctl warning."

* commit '596e9c6314e4f2869499bcdbb816680ddb10c88f':
  fix valgrind ioctl warning.
This commit is contained in:
Colin Cross 2013-09-05 12:55:33 -07:00 committed by Android Git Automerger
commit c9ff37144a

View file

@ -48,7 +48,7 @@ int ashmem_create_region(const char *name, size_t size)
return fd;
if (name) {
char buf[ASHMEM_NAME_LEN];
char buf[ASHMEM_NAME_LEN] = {0};
strlcpy(buf, name, sizeof(buf));
ret = ioctl(fd, ASHMEM_SET_NAME, buf);