summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2013-09-05 12:57:15 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-09-05 12:57:15 -0700
commit8da6e9c717ec5c1076dfedc7a37e9cfbe100977e (patch)
tree6fbeb67e4de72403c3f073d2573f131f89a376cd
parent61e4b4d5a8a948c4241c26627cf8d6cb9d0544ca (diff)
parentc9ff37144a7943ee1bc247cef3620c8cce22049d (diff)
downloadsystem_core-8da6e9c717ec5c1076dfedc7a37e9cfbe100977e.zip
system_core-8da6e9c717ec5c1076dfedc7a37e9cfbe100977e.tar.gz
system_core-8da6e9c717ec5c1076dfedc7a37e9cfbe100977e.tar.bz2
am c9ff3714: am 596e9c63: Merge "fix valgrind ioctl warning."
* commit 'c9ff37144a7943ee1bc247cef3620c8cce22049d': fix valgrind ioctl warning.
-rw-r--r--libcutils/ashmem-dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcutils/ashmem-dev.c b/libcutils/ashmem-dev.c
index 8b71f87..3089a94 100644
--- a/libcutils/ashmem-dev.c
+++ b/libcutils/ashmem-dev.c
@@ -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);