xf86-video-intel: src/sna/sna_glyphs.c

Chris Wilson ickle at kemper.freedesktop.org
Tue Jun 2 01:15:56 PDT 2015


 src/sna/sna_glyphs.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 2fa48450c79a27cdd923faa690e5e8e772ae4dad
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Tue Jun 2 09:15:09 2015 +0100

    sna: Avoid using NULL pointer inside DBG
    
    When pretty printing the format for DBG, make sure it is not NULL!
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90725#c32
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_glyphs.c b/src/sna/sna_glyphs.c
index 9e945f0..6ee4033 100644
--- a/src/sna/sna_glyphs.c
+++ b/src/sna/sna_glyphs.c
@@ -1559,11 +1559,12 @@ skip_glyph:
 		}
 	}
 
+	assert(format);
+	DBG(("%s: format=%08d, depth=%d\n",
+	     __FUNCTION__, format->format, format->depth));
 out:
 	if (list_extents != stack_extents)
 		free(list_extents);
-	DBG(("%s: format=%08d, depth=%d\n",
-	     __FUNCTION__, format->format, format->depth));
 	return format;
 }
 


More information about the xorg-commit mailing list