summaryrefslogtreecommitdiffstats
path: root/libs/gui
diff options
context:
space:
mode:
authorNaveen Leekha <leekha@google.com>2015-09-24 22:13:06 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-09-24 22:13:06 +0000
commite889592e33891c9b88ff6ba655426118f8ef12ee (patch)
tree4ad630f290f97dc0a367e8b4b1615b9a4688e9c8 /libs/gui
parent990c54485f361d587d09952e60ab5fb608d161dd (diff)
parent73887c0864c9a928db6f66bd48c5aea4d31d9a8b (diff)
downloadframeworks_native-e889592e33891c9b88ff6ba655426118f8ef12ee.zip
frameworks_native-e889592e33891c9b88ff6ba655426118f8ef12ee.tar.gz
frameworks_native-e889592e33891c9b88ff6ba655426118f8ef12ee.tar.bz2
am 73887c08: am b414255f: Initialize local variables to avoid data leak
* commit '73887c0864c9a928db6f66bd48c5aea4d31d9a8b': 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 7093ffa..d09eba0 100644
--- a/libs/gui/IGraphicBufferProducer.cpp
+++ b/libs/gui/IGraphicBufferProducer.cpp
@@ -365,7 +365,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);