diff options
author | marha <marha@users.sourceforge.net> | 2010-05-11 14:23:54 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-05-11 14:23:54 +0000 |
commit | 9dea871b28ba9a8ef5374b6420aa5dafcd2610e1 (patch) | |
tree | 10e52cc929bf31f630adc11e729f185cf6e60099 /xorg-server/mi/mipolypnt.c | |
parent | 49c7992dfc9c6b8a60baf1afbede4616e0265e7f (diff) | |
download | vcxsrv-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.c | 5 |
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; |