summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaveen Leekha <leekha@google.com>2015-09-24 22:26:22 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-09-24 22:26:22 +0000
commit83e60e42573ebc1bb06a408170bcdac2824e8dd6 (patch)
tree5974ae5980befe4332a2d3ebdabcda460e4eae4c
parentce92ce9bef5942435bb49474f0e5e4b29cfc5e97 (diff)
parent571e27e20e30560985d7c3a3ba8885693695b0fc (diff)
downloadframeworks_native-83e60e42573ebc1bb06a408170bcdac2824e8dd6.zip
frameworks_native-83e60e42573ebc1bb06a408170bcdac2824e8dd6.tar.gz
frameworks_native-83e60e42573ebc1bb06a408170bcdac2824e8dd6.tar.bz2
am 571e27e2: am e889592e: am 73887c08: am b414255f: Initialize local variables to avoid data leak
* commit '571e27e20e30560985d7c3a3ba8885693695b0fc': 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);