mirror of
https://github.com/X11Libre/xserver.git
synced 2026-01-26 14:03:17 +00:00
exa: silence calloc() warning on mingw32
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
1e66e2e02d
commit
a712daada2
@ -736,7 +736,7 @@ exaPolySegment(DrawablePtr pDrawable, GCPtr pGC, int nseg, xSegment * pSeg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
xRectangle *prect = calloc((unsigned int)nseg, sizeof(xRectangle));
|
xRectangle *prect = calloc(1, (unsigned int)nseg * sizeof(xRectangle));
|
||||||
if (!prect)
|
if (!prect)
|
||||||
return;
|
return;
|
||||||
for (i = 0; i < nseg; i++) {
|
for (i = 0; i < nseg; i++) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user