summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2017-07-16 15:17:25 +0100
committerLionel Landwerlin <[email protected]>2017-07-17 14:36:38 +0100
commitf03f893cb863d16e334d2c60784939cbb8150cd6 (patch)
treef61dab41dd7040c2d37d1b187b0c24489be08dcd
parent0d190913bfa55cd22873f0435493f204621fe0cd (diff)
i965: miptree: silence coverity warning
This probably can't happen, but we're better off with initialized variables. CID: 1415114 Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/intel_mipmap_tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index e7ebc29b59d..83d3d8204aa 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -990,7 +990,7 @@ miptree_create_for_planar_image(struct brw_context *brw,
__DRIimage *image, GLenum target)
{
struct intel_image_format *f = image->planar_format;
- struct intel_mipmap_tree *planar_mt;
+ struct intel_mipmap_tree *planar_mt = NULL;
for (int i = 0; i < f->nplanes; i++) {
const int index = f->planes[i].buffer_index;