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@chris-wilson.co.uk>
This commit is contained in:
parent
189ad44c94
commit
2fa48450c7
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue