summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2014-03-20 16:09:14 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-03-20 16:09:15 +0000
commit01502981cddb69b9ab7e4bf8bc66366ae0eb7035 (patch)
treedce9bd7b0c6d281e21126d9e6fa119a7162cd760 /libs
parent1bf30245cbb8be7279fadcf4071cecc8db91789f (diff)
parent78181df1efee04bb861893714d8b11a24243153f (diff)
downloadframeworks_native-01502981cddb69b9ab7e4bf8bc66366ae0eb7035.zip
frameworks_native-01502981cddb69b9ab7e4bf8bc66366ae0eb7035.tar.gz
frameworks_native-01502981cddb69b9ab7e4bf8bc66366ae0eb7035.tar.bz2
Merge "fix valgrind ioctl warning."
Diffstat (limited to 'libs')
-rw-r--r--libs/binder/ProcessState.cpp2
1 files changed, 1 insertions, 1 deletions
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 @@ static int open_driver()
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));