diff options
author | Vinson Lee <[email protected]> | 2013-05-09 22:42:10 -0700 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-05-10 15:29:40 +0800 |
commit | 5471e3949cb6482f1a6dcb969332f2544a758e46 (patch) | |
tree | 3e3264430da6f4d7b51a478febc3e94d6e13fce4 /src/gallium/drivers | |
parent | da33f9b919039442e9ab51f9b1d1c83a73607133 (diff) |
ilo: Initialize read_back in transfer_map_sys.
Fixes "Uninitialized scalar variable" defect reported by Coverity.
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_resource.c b/src/gallium/drivers/ilo/ilo_resource.c index c401d9f5f2b..41e4ffb1a9b 100644 --- a/src/gallium/drivers/ilo/ilo_resource.c +++ b/src/gallium/drivers/ilo/ilo_resource.c @@ -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; |