summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorPablo Ceballos <pceballos@google.com>2016-03-15 18:10:49 -0700
committerThe Android Automerger <android-build@google.com>2016-03-25 17:47:54 -0700
commita30d7d90c4f718e46fb41a99b3d52800e1011b73 (patch)
treee7c19d6c88e4054ff8f68ca5c94b8cbef0948061 /libs
parent5243afa8fa719e3cc6d1af4333986b2d7ee5e737 (diff)
downloadframeworks_native-a30d7d90c4f718e46fb41a99b3d52800e1011b73.tar.gz
frameworks_native-a30d7d90c4f718e46fb41a99b3d52800e1011b73.tar.bz2
frameworks_native-a30d7d90c4f718e46fb41a99b3d52800e1011b73.zip
BQ: fix some uninitialized variables
Bug 27555981 Bug 27556038 Change-Id: I436b6fec589677d7e36c0e980f6e59808415dc0e
Diffstat (limited to 'libs')
-rw-r--r--libs/gui/IGraphicBufferConsumer.cpp2
-rw-r--r--libs/gui/IGraphicBufferProducer.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/libs/gui/IGraphicBufferConsumer.cpp b/libs/gui/IGraphicBufferConsumer.cpp
index c4660bad8..7ae82e056 100644
--- a/libs/gui/IGraphicBufferConsumer.cpp
+++ b/libs/gui/IGraphicBufferConsumer.cpp
@@ -349,7 +349,7 @@ status_t BnGraphicBufferConsumer::onTransact(
}
case GET_RELEASED_BUFFERS: {
CHECK_INTERFACE(IGraphicBufferConsumer, data, reply);
- uint64_t slotMask;
+ uint64_t slotMask = 0;
status_t result = getReleasedBuffers(&slotMask);
reply->writeInt64(static_cast<int64_t>(slotMask));
reply->writeInt32(result);
diff --git a/libs/gui/IGraphicBufferProducer.cpp b/libs/gui/IGraphicBufferProducer.cpp
index 1099c84f8..c3c62358f 100644
--- a/libs/gui/IGraphicBufferProducer.cpp
+++ b/libs/gui/IGraphicBufferProducer.cpp
@@ -435,6 +435,7 @@ status_t BnGraphicBufferProducer::onTransact(
QueueBufferOutput* const output =
reinterpret_cast<QueueBufferOutput *>(
reply->writeInplace(sizeof(QueueBufferOutput)));
+ memset(output, 0, sizeof(QueueBufferOutput));
status_t res = connect(listener, api, producerControlledByApp, output);
reply->writeInt32(res);
return NO_ERROR;