rxvt_drawable &d2 = d.screen->scratch_drawable (w, h);
#ifdef HAVE_BG_PIXMAP
- Picture dst = 0;
+ Picture dst = 0; // the only assignment is done conditionally in the following if condition
if (term->bgPixmap.pixmap
&& (bg == Color_transparent || bg == Color_bg
{
Picture solid_color_pict = XftDrawSrcPicture (d2, &term->pix_colors[bg].c);
+ // dst can only be set when bg >= 0
XRenderComposite (disp, PictOpOver, solid_color_pict, None, dst, 0, 0, 0, 0, 0, 0, w, h);
}
}