commit | 01502981cddb69b9ab7e4bf8bc66366ae0eb7035 | [log] [tgz] |
---|---|---|
author | Jesse Hall <jessehall@google.com> | Thu Mar 20 16:09:14 2014 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Mar 20 16:09:15 2014 +0000 |
tree | dce9bd7b0c6d281e21126d9e6fa119a7162cd760 | |
parent | 1bf30245cbb8be7279fadcf4071cecc8db91789f [diff] | |
parent | 78181df1efee04bb861893714d8b11a24243153f [diff] |
Merge "fix valgrind ioctl warning."
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp index 0163906..19ed047 100644 --- a/libs/binder/ProcessState.cpp +++ b/libs/binder/ProcessState.cpp
@@ -345,7 +345,7 @@ int fd = open("/dev/binder", O_RDWR); if (fd >= 0) { fcntl(fd, F_SETFD, FD_CLOEXEC); - int vers; + int vers = 0; status_t result = ioctl(fd, BINDER_VERSION, &vers); if (result == -1) { ALOGE("Binder ioctl to obtain version failed: %s", strerror(errno));