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

Commit 68b88fc1 authored by Naveen Leekha's avatar Naveen Leekha Committed by Android (Google) Code Review
Browse files

Merge "Initialize local variables to avoid data leak"

parents c652d17c 12ba0f57
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -376,7 +376,7 @@ status_t BnGraphicBufferProducer::onTransact(
            uint32_t height = data.readUint32();
            PixelFormat format = static_cast<PixelFormat>(data.readInt32());
            uint32_t usage = data.readUint32();
            int buf;
            int buf = 0;
            sp<Fence> fence;
            int result = dequeueBuffer(&buf, &fence, async, width, height,
                    format, usage);
@@ -417,7 +417,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);
@@ -445,7 +445,7 @@ status_t BnGraphicBufferProducer::onTransact(
        }
        case QUERY: {
            CHECK_INTERFACE(IGraphicBufferProducer, data, reply);
            int value;
            int value = 0;
            int what = data.readInt32();
            int res = query(what, &value);
            reply->writeInt32(value);