exa: silence calloc() warning on mingw32

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-12-12 16:49:51 +01:00 committed by Enrico Weigelt
parent 1e66e2e02d
commit a712daada2

View File

@ -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++) {