diff options
author | Naveen Leekha <leekha@google.com> | 2015-09-24 22:20:05 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-09-24 22:20:05 +0000 |
commit | 7534e4e63afedeb826a8d8a4b0cf3f9d40d243ea (patch) | |
tree | ea3c762d257db42854a9566506a2233cb3e502ad /libs | |
parent | 73887c0864c9a928db6f66bd48c5aea4d31d9a8b (diff) | |
parent | 18165848e86feab8656bfdac3173bccf45a9a6df (diff) | |
download | frameworks_native-7534e4e63afedeb826a8d8a4b0cf3f9d40d243ea.zip frameworks_native-7534e4e63afedeb826a8d8a4b0cf3f9d40d243ea.tar.gz frameworks_native-7534e4e63afedeb826a8d8a4b0cf3f9d40d243ea.tar.bz2 |
am 18165848: am e2c4f4fb: am c1e6fbb5: Initialize local variables to avoid data leak
* commit '18165848e86feab8656bfdac3173bccf45a9a6df':
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 dd9db33..4f7b0d3 100644 --- a/libs/gui/IGraphicBufferProducer.cpp +++ b/libs/gui/IGraphicBufferProducer.cpp @@ -304,7 +304,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); @@ -371,7 +371,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); |