summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaveen Leekha <leekha@google.com>2015-09-24 22:40:55 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-09-24 22:40:55 +0000
commitb062a7a10d014c30f2c59761010fa4e4f876e85c (patch)
treefb19cc7fda37f913e115bef718862609fd4c670d
parentdd71ee89afcb8cc27bcffa01cd0f8fc0db36fd65 (diff)
parent62e5463e248d581ee4faa58c631541b994500793 (diff)
downloadframeworks_native-b062a7a10d014c30f2c59761010fa4e4f876e85c.zip
frameworks_native-b062a7a10d014c30f2c59761010fa4e4f876e85c.tar.gz
frameworks_native-b062a7a10d014c30f2c59761010fa4e4f876e85c.tar.bz2
am 62e5463e: am 83e60e42: am 571e27e2: am e889592e: am 73887c08: am b414255f: Initialize local variables to avoid data leak
* commit '62e5463e248d581ee4faa58c631541b994500793': Initialize local variables to avoid data leak
-rw-r--r--libs/gui/IGraphicBufferProducer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/IGraphicBufferProducer.cpp b/libs/gui/IGraphicBufferProducer.cpp
index d7a7885..2118c92 100644
--- a/libs/gui/IGraphicBufferProducer.cpp
+++ b/libs/gui/IGraphicBufferProducer.cpp
@@ -389,7 +389,7 @@ status_t BnGraphicBufferProducer::onTransact(
CHECK_INTERFACE(IGraphicBufferProducer, data, reply);
sp<GraphicBuffer> buffer = new GraphicBuffer();
data.read(*buffer.get());
- int slot;
+ int slot = 0;
int result = attachBuffer(&slot, buffer);
reply->writeInt32(slot);
reply->writeInt32(result);