mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-30 09:28:58 +00:00
mi: Fix shadow warnings
Based off a xserver commit from Yaakov Selkowitz: http://cgit.freedesktop.org/xorg/xserver/commit/mi/mispans.c?id=f02e27e4fcc34413b2051e5a01edc92172fa8612
This commit is contained in:
parent
ae39a05620
commit
a4f4ddf56c
@ -806,8 +806,6 @@ miFillUniqueSpanGroup (GCPtr pGC, SpanGroup * spanGroup, Boolean foreground)
|
||||
newwidths = xrealloc (newspans->widths,
|
||||
ysizes[index] * sizeof (int));
|
||||
if (!newpoints || !newwidths) {
|
||||
int i;
|
||||
|
||||
for (i = 0; i < ylength; i++) {
|
||||
xfree (yspans[i].points);
|
||||
xfree (yspans[i].widths);
|
||||
@ -838,8 +836,6 @@ miFillUniqueSpanGroup (GCPtr pGC, SpanGroup * spanGroup, Boolean foreground)
|
||||
points = (DDXPointRec*)xalloc (count * sizeof (DDXPointRec));
|
||||
widths = (int *)xalloc (count * sizeof (int));
|
||||
if (!points || !widths) {
|
||||
int i;
|
||||
|
||||
for (i = 0; i < ylength; i++) {
|
||||
xfree (yspans[i].points);
|
||||
xfree (yspans[i].widths);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user