sna: Fix printing of uninitialied value in DBG

==25902== Use of uninitialised value of size 4
==25902==    at 0x423098E: _itoa_word (_itoa.c:196)
==25902==    by 0x4233F7F: vfprintf (vfprintf.c:1602)
==25902==    by 0x42FAFAD: __vsnprintf_chk (vsnprintf_chk.c:65)
==25902==    by 0x81DBE8E: Xvscnprintf (in /usr/bin/Xorg)
==25902==    by 0x81DC8FB: LogVMessageVerb (in /usr/bin/Xorg)
==25902==    by 0x81DCA62: LogVWrite (in /usr/bin/Xorg)
==25902==    by 0x81DCA9B: VErrorF (in /usr/bin/Xorg)
==25902==    by 0x81DC333: ErrorF (in /usr/bin/Xorg)
==25902==    by 0x49B2FA8: trapezoid_span_inplace__x8r8g8b8 (sna_trapezoids.c:5069)
==25902==    by 0x49B3407: trapezoid_span_inplace (sna_trapezoids.c:5166)
==25902==    by 0x49B4C96: sna_composite_trapezoids (sna_trapezoids.c:5619)

Reported-by: bonbons67@internet.lu
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56785
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-11-11 10:49:59 +00:00
parent 66e4c8ff40
commit 69acbb77e8
1 changed files with 2 additions and 2 deletions

View File

@ -5066,8 +5066,8 @@ trapezoid_span_inplace__x8r8g8b8(CARD8 op,
pixmap = get_drawable_pixmap(dst->pDrawable);
get_drawable_deltas(dst->pDrawable, pixmap, &dst_x, &dst_y);
DBG(("%s: format=%x, op=%d, color=%x\n",
__FUNCTION__, dst->format, op, color));
DBG(("%s: format=%x, op=%d, lerp?=%d\n",
__FUNCTION__, dst->format, op, lerp));
if (lerp) {
struct inplace inplace;