diff options
Diffstat (limited to 'libs/binder/Parcel.cpp')
| -rw-r--r-- | libs/binder/Parcel.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp index a7d8df204c..10eabec447 100644 --- a/libs/binder/Parcel.cpp +++ b/libs/binder/Parcel.cpp @@ -2682,7 +2682,7 @@ status_t Parcel::restartWrite(size_t desired)      releaseObjects(); -    if (data) { +    if (data || desired == 0) {          LOG_ALLOC("Parcel %p: restart from %zu to %zu capacity", this, mDataCapacity, desired);          if (mDataCapacity > desired) {              gParcelGlobalAllocSize -= (mDataCapacity - desired);  |