diff options
author | Naveen Leekha <leekha@google.com> | 2015-09-24 22:26:22 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-09-24 22:26:22 +0000 |
commit | 83e60e42573ebc1bb06a408170bcdac2824e8dd6 (patch) | |
tree | 5974ae5980befe4332a2d3ebdabcda460e4eae4c | |
parent | ce92ce9bef5942435bb49474f0e5e4b29cfc5e97 (diff) | |
parent | 571e27e20e30560985d7c3a3ba8885693695b0fc (diff) | |
download | frameworks_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.cpp | 2 |
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); |