diff options
| -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; |