OSDN Git Service

Merge "fix valgrind ioctl warning."
[android-x86/frameworks-native.git] / libs / binder / ProcessState.cpp
index 0163906..19ed047 100644 (file)
@@ -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));