diff options
Diffstat (limited to 'libcutils')
-rw-r--r-- | libcutils/ashmem-dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcutils/ashmem-dev.c b/libcutils/ashmem-dev.c index 8b71f87de..3089a942d 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); |