summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-06-04 15:04:29 +0100
committerNarayan Kamath <narayan@google.com>2014-06-04 15:34:16 +0100
commit2f1f742b903474b60ff58f74db5b9e81f2a9e1bf (patch)
tree424ce6b9eb08ec6fc94b745e5166bfb918908d1e
parentf1dd859baa114995bcbcfb7119e939d0b4f45ed5 (diff)
downloadnative-2f1f742b903474b60ff58f74db5b9e81f2a9e1bf.tar.gz
Fix mips build for libbinder.
Mips specific code was using an uninitialized variable. (cherry picked from commit 2c68d380c9ef765a7d46e5a4735f39e6c27849f2) Change-Id: I6b562b3f6d2084b72e747736cbf43684c2049f8e
-rw-r--r--libs/binder/Parcel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp
index db6369d27c..fda2715dd2 100644
--- a/libs/binder/Parcel.cpp
+++ b/libs/binder/Parcel.cpp
@@ -1036,6 +1036,7 @@ status_t Parcel::readDouble(double *pArg) const
double d;
unsigned long long ll;
} u;
+ u.d = 0;
status_t status;
status = readAligned(&u.ll);
*pArg = u.d;