summaryrefslogtreecommitdiff
path: root/libs/gui/IGraphicBufferAlloc.cpp
diff options
context:
space:
mode:
author Pablo Ceballos <pceballos@google.com> 2016-06-20 17:40:34 -0700
committer Pablo Ceballos <pceballos@google.com> 2016-07-14 08:43:20 -0700
commitbd3577ef5bae7d65e54bddc04f90b619330edb89 (patch)
treee39428a6d84d9b4e3cedc63c2a99f45fe2002614 /libs/gui/IGraphicBufferAlloc.cpp
parentab708f69952e8672d3f7e235b6d46d89f53b340e (diff)
Make sure constructors initialize all members
- Add default constructors to Parcelables that didn't have them and make sure all members are initialized by the constructors. - Add missing fields to BufferItem flatten/unflatten. Change-Id: I9aa83b326dc3aee757762e63be499dc96a74df91
Diffstat (limited to 'libs/gui/IGraphicBufferAlloc.cpp')
-rw-r--r--libs/gui/IGraphicBufferAlloc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/IGraphicBufferAlloc.cpp b/libs/gui/IGraphicBufferAlloc.cpp
index d4d470281e..ac6ace692c 100644
--- a/libs/gui/IGraphicBufferAlloc.cpp
+++ b/libs/gui/IGraphicBufferAlloc.cpp
@@ -101,7 +101,7 @@ status_t BnGraphicBufferAlloc::onTransact(
uint32_t height = data.readUint32();
PixelFormat format = static_cast<PixelFormat>(data.readInt32());
uint32_t usage = data.readUint32();
- status_t error;
+ status_t error = NO_ERROR;
sp<GraphicBuffer> result =
createGraphicBuffer(width, height, format, usage, &error);
reply->writeInt32(error);