diff options
author | Jin Wei <wei.a.jin@intel.com> | 2012-10-18 17:00:48 +0800 |
---|---|---|
committer | Jian Luo <jian.luo@intel.com> | 2013-08-31 19:05:36 -0400 |
commit | 78181df1efee04bb861893714d8b11a24243153f (patch) | |
tree | ccadc913e204ae96725c9c47299c786f7837465c /libs/binder | |
parent | fc43e16a5693bca0edfc82c650fb606971e47138 (diff) | |
download | frameworks_native-78181df1efee04bb861893714d8b11a24243153f.zip frameworks_native-78181df1efee04bb861893714d8b11a24243153f.tar.gz frameworks_native-78181df1efee04bb861893714d8b11a24243153f.tar.bz2 |
fix valgrind ioctl warning.
Initialize local variable to avoid syscall ioctl warning.
Change-Id: I33a90917856018a8527305bb362948ef03bd734c
Origin-Change-Id: I022ebce40b3774a815639a5af34bc7aeb2489936
Signed-off-by: Jin Wei <wei.a.jin@intel.com>
Signed-off-by: Jian Luo <jian.luo@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 62797
Diffstat (limited to 'libs/binder')
-rw-r--r-- | libs/binder/ProcessState.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp index 294e1d4..6464254 100644 --- a/libs/binder/ProcessState.cpp +++ b/libs/binder/ProcessState.cpp @@ -318,7 +318,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)); |