Merge "fix valgrind ioctl warning."

This commit is contained in:
Colin Cross 2013-09-05 19:54:31 +00:00 committed by Gerrit Code Review
commit 596e9c6314

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);