xdmxconfig: warning fix
xdmxconfig.c: In function ‘dmxConfigCanvasDraw’: xdmxconfig.c:299:23: warning: ‘maxHeight’ may be used uninitialized in this function Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
7a08f9abef
commit
d127075da0
|
@ -142,7 +142,7 @@ static void dmxConfigGetDims(int *maxWidth, int *maxHeight)
|
||||||
DMXConfigEntryPtr e;
|
DMXConfigEntryPtr e;
|
||||||
|
|
||||||
*maxWidth = dmxConfigWallWidth = 0;
|
*maxWidth = dmxConfigWallWidth = 0;
|
||||||
*maxWidth = dmxConfigWallHeight = 0;
|
*maxHeight = dmxConfigWallHeight = 0;
|
||||||
if (!dmxConfigCurrent) return;
|
if (!dmxConfigCurrent) return;
|
||||||
|
|
||||||
dmxConfigWallWidth = dmxConfigCurrent->width;
|
dmxConfigWallWidth = dmxConfigCurrent->width;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user