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

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

am 571e27e2: am e889592e: am 73887c08: am b414255f: Initialize local variables to avoid data leak

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