aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/mi/mipolypnt.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-05-11 14:23:54 +0000
committermarha <marha@users.sourceforge.net>2010-05-11 14:23:54 +0000
commit9dea871b28ba9a8ef5374b6420aa5dafcd2610e1 (patch)
tree10e52cc929bf31f630adc11e729f185cf6e60099 /xorg-server/mi/mipolypnt.c
parent49c7992dfc9c6b8a60baf1afbede4616e0265e7f (diff)
downloadvcxsrv-9dea871b28ba9a8ef5374b6420aa5dafcd2610e1.tar.gz
vcxsrv-9dea871b28ba9a8ef5374b6420aa5dafcd2610e1.tar.bz2
vcxsrv-9dea871b28ba9a8ef5374b6420aa5dafcd2610e1.zip
xserver git update 11/5/2010
Diffstat (limited to 'xorg-server/mi/mipolypnt.c')
-rw-r--r--xorg-server/mi/mipolypnt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xorg-server/mi/mipolypnt.c b/xorg-server/mi/mipolypnt.c
index 5d6243ab0..12771ee4e 100644
--- a/xorg-server/mi/mipolypnt.c
+++ b/xorg-server/mi/mipolypnt.c
@@ -73,6 +73,9 @@ miPolyPoint(
int i;
xPoint *ppt;
+ if(!(pwidthInit = xalloc(npt * sizeof(int))))
+ return;
+
/* make pointlist origin relative */
if (mode == CoordModePrevious)
{
@@ -107,8 +110,6 @@ miPolyPoint(
DoChangeGC(pGC, GCFillStyle, &fsNew, 0);
ValidateGC(pDrawable, pGC);
}
- if(!(pwidthInit = xalloc(npt * sizeof(int))))
- return;
pwidth = pwidthInit;
for(i = 0; i < npt; i++)
*pwidth++ = 1;