ilo: Initialize read_back in transfer_map_sys.
Fixes "Uninitialized scalar variable" defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
This commit is contained in:
parent
da33f9b919
commit
5471e3949c
|
@ -340,7 +340,7 @@ transfer_map_sys(struct ilo_context *ilo,
|
|||
const size_t stride = util_format_get_stride(res->base.format, box->width);
|
||||
const size_t size =
|
||||
util_format_get_2d_size(res->base.format, stride, box->height);
|
||||
bool read_back;
|
||||
bool read_back = false;
|
||||
|
||||
if (xfer->base.usage & PIPE_TRANSFER_READ) {
|
||||
read_back = true;
|
||||
|
|
Loading…
Reference in New Issue