Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18165848 authored by Naveen Leekha's avatar Naveen Leekha Committed by Android Git Automerger
Browse files

am e2c4f4fb: am c1e6fbb5: Initialize local variables to avoid data leak

* commit 'e2c4f4fb':
  Initialize local variables to avoid data leak
parents b414255f e2c4f4fb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);