diff options
| author | 2017-07-18 20:31:50 +0000 | |
|---|---|---|
| committer | 2017-07-18 20:31:50 +0000 | |
| commit | 802529f46d29c3539eb2159c0849292ffab0aa83 (patch) | |
| tree | baff8192d0bb8c907bee3ff22a33cb222d4d6885 | |
| parent | 9cd659c8dcd1f48b6d42f4463022ee6fac92e3eb (diff) | |
| parent | 747d847ff17499ef4e0d5ea09d02f6c2eb2f4c7f (diff) | |
Merge "Fix clang static anaylzer warnings." am: a97d58a21b
am: 747d847ff1
Change-Id: Ic74cc49d92fc6a661be461bca19b77b45e9a3a4e
| -rw-r--r-- | libs/binder/Parcel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp index aec8f107a3..e22179b15d 100644 --- a/libs/binder/Parcel.cpp +++ b/libs/binder/Parcel.cpp @@ -1851,7 +1851,7 @@ intptr_t Parcel::readIntPtr() const status_t Parcel::readBool(bool *pArg) const { - int32_t tmp; + int32_t tmp = 0; status_t ret = readInt32(&tmp); *pArg = (tmp != 0); return ret; @@ -1864,7 +1864,7 @@ bool Parcel::readBool() const status_t Parcel::readChar(char16_t *pArg) const { - int32_t tmp; + int32_t tmp = 0; status_t ret = readInt32(&tmp); *pArg = char16_t(tmp); return ret; @@ -1877,7 +1877,7 @@ char16_t Parcel::readChar() const status_t Parcel::readByte(int8_t *pArg) const { - int32_t tmp; + int32_t tmp = 0; status_t ret = readInt32(&tmp); *pArg = int8_t(tmp); return ret; |