summaryrefslogtreecommitdiffstats
path: root/libs/gui
diff options
context:
space:
mode:
authorNaveen Leekha <leekha@google.com>2015-09-24 22:00:33 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-09-24 22:00:33 +0000
commit73887c0864c9a928db6f66bd48c5aea4d31d9a8b (patch)
tree8faa51f48b252f8b80ff18d38d1c0aadfa724902 /libs/gui
parentc1d8af50c314164c0e6760d364b47d16b8d423ee (diff)
parentb414255f53b560a06e642251535b019327ba0d7b (diff)
downloadframeworks_native-73887c0864c9a928db6f66bd48c5aea4d31d9a8b.zip
frameworks_native-73887c0864c9a928db6f66bd48c5aea4d31d9a8b.tar.gz
frameworks_native-73887c0864c9a928db6f66bd48c5aea4d31d9a8b.tar.bz2
am b414255f: Initialize local variables to avoid data leak
* commit 'b414255f53b560a06e642251535b019327ba0d7b': Initialize local variables to avoid data leak
Diffstat (limited to 'libs/gui')
-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 1e28f9b..dd9db33 100644
--- a/libs/gui/IGraphicBufferProducer.cpp
+++ b/libs/gui/IGraphicBufferProducer.cpp
@@ -344,7 +344,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);