diff options
| author | 2017-07-18 20:23:07 +0000 | |
|---|---|---|
| committer | 2017-07-18 20:23:07 +0000 | |
| commit | 747d847ff17499ef4e0d5ea09d02f6c2eb2f4c7f (patch) | |
| tree | 646f30de476d9457ccd8fb0f13a7dcf60ec86f23 /libs | |
| parent | 6ac4d2a42b33d043e22341a7b87a0393bb809f6d (diff) | |
| parent | a97d58a21b9327b470334ccda2f1ad593191a3c4 (diff) | |
Merge "Fix clang static anaylzer warnings."
am: a97d58a21b
Change-Id: Id66bd914d41190df5c3dc29968fab5b7f942851d
Diffstat (limited to 'libs')
| -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; |