Skip to content
Permalink
Browse files

DO NOT MERGE BQ: fix some uninitialized variables

Bug 27555981
Bug 27556038

Change-Id: I436b6fec589677d7e36c0e980f6e59808415dc0e
(cherry picked from commit 030172e)
  • Loading branch information...
Pablo Ceballos authored and andi34 committed Mar 16, 2016
1 parent b016f87 commit 1ad57574071cb2bd1ea8412db609abe2f233b545
Showing with 2 additions and 1 deletion.
  1. +1 −1 libs/gui/IGraphicBufferConsumer.cpp
  2. +1 −0 libs/gui/IGraphicBufferProducer.cpp
@@ -410,7 +410,7 @@ status_t BnGraphicBufferConsumer::onTransact(
} break;
case GET_RELEASED_BUFFERS: {
CHECK_INTERFACE(IGraphicBufferConsumer, data, reply);
uint32_t slotMask;
uint32_t slotMask = 0;
status_t result = getReleasedBuffers(&slotMask);
reply->writeInt32(slotMask);
reply->writeInt32(result);
@@ -249,6 +249,7 @@ status_t BnGraphicBufferProducer::onTransact(
QueueBufferOutput* const output =
reinterpret_cast<QueueBufferOutput *>(
reply->writeInplace(sizeof(QueueBufferOutput)));
memset(output, 0, sizeof(QueueBufferOutput));
status_t res = connect(token, api, producerControlledByApp, output);
reply->writeInt32(res);
return NO_ERROR;

0 comments on commit 1ad5757

Please sign in to comment.
You can’t perform that action at this time.