dmx: Fix a read-from-uninitialized warning
../hw/dmx/dmxpixmap.c: In function ‘dmxBitmapToRegion’: ../include/regionstr.h:174:22: warning: ‘Box.x1’ may be used uninitialized in this function [-Wmaybe-uninitialized] (_pReg)->extents = *(_pBox); ~~~~~~~~~~~~~~~~~^~~~~~~~~~ ../hw/dmx/dmxpixmap.c:208:12: note: ‘Box.x1’ was declared here BoxRec Box; ^~~ Signed-off-by: Adam Jackson <ajax@redhat.com> Acked-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
c3b190f9da
commit
be99072a1a
|
@ -205,7 +205,7 @@ dmxBitmapToRegion(PixmapPtr pPixmap)
|
||||||
RegionPtr pReg, pTmpReg;
|
RegionPtr pReg, pTmpReg;
|
||||||
int x, y;
|
int x, y;
|
||||||
unsigned long previousPixel, currentPixel;
|
unsigned long previousPixel, currentPixel;
|
||||||
BoxRec Box;
|
BoxRec Box = { 0, };
|
||||||
Bool overlap;
|
Bool overlap;
|
||||||
|
|
||||||
if (!dmxScreen->beDisplay) {
|
if (!dmxScreen->beDisplay) {
|
||||||
|
|
Loading…
Reference in New Issue