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
parent b0fcbcbde5
commit 28bbfcd0b7

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)
return;
for (i = 0; i < nseg; i++) {