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:
Chris Wilson 2015-06-02 09:15:09 +01:00
parent 189ad44c94
commit 2fa48450c7
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}