diff options
author | Naveen Leekha <leekha@google.com> | 2015-09-24 22:00:13 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-09-24 22:00:13 +0000 |
commit | e2c4f4fb8b34e36a4f2760f3812c942604cabfb6 (patch) | |
tree | 6b385f3caab032f1f8708335321a8cc113735624 /libs | |
parent | dc3d6af97d521678981c773ad9f4e1da088d7870 (diff) | |
parent | c1e6fbb52c3f85cc7610d1d07d12be38f70b4ed4 (diff) | |
download | frameworks_native-e2c4f4fb8b34e36a4f2760f3812c942604cabfb6.zip frameworks_native-e2c4f4fb8b34e36a4f2760f3812c942604cabfb6.tar.gz frameworks_native-e2c4f4fb8b34e36a4f2760f3812c942604cabfb6.tar.bz2 |
am c1e6fbb5: Initialize local variables to avoid data leak
* commit 'c1e6fbb52c3f85cc7610d1d07d12be38f70b4ed4':
Initialize local variables to avoid data leak
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gui/IGraphicBufferProducer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/gui/IGraphicBufferProducer.cpp b/libs/gui/IGraphicBufferProducer.cpp index 0f461e5..d5e86a1 100644 --- a/libs/gui/IGraphicBufferProducer.cpp +++ b/libs/gui/IGraphicBufferProducer.cpp @@ -205,7 +205,7 @@ status_t BnGraphicBufferProducer::onTransact( uint32_t h = data.readInt32(); uint32_t format = data.readInt32(); uint32_t usage = data.readInt32(); - int buf; + int buf = 0; sp<Fence> fence; int result = dequeueBuffer(&buf, &fence, async, w, h, format, usage); reply->writeInt32(buf); @@ -237,7 +237,7 @@ status_t BnGraphicBufferProducer::onTransact( } break; case QUERY: { CHECK_INTERFACE(IGraphicBufferProducer, data, reply); - int value; + int value = 0; int what = data.readInt32(); int res = query(what, &value); reply->writeInt32(value); |