From: Lionel Landwerlin Date: Sun, 16 Jul 2017 14:17:25 +0000 (+0100) Subject: i965: miptree: silence coverity warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f03f893cb863d16e334d2c60784939cbb8150cd6;p=mesa.git 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 Reviewed-by: Kenneth Graunke Reviewed-by: Samuel Iglesias Gonsálvez --- 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;