* commit '571e27e20e30560985d7c3a3ba8885693695b0fc': Initialize local variables to avoid data leak
This commit is contained in:
commit
83e60e4257
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user