diff options
author | Mihai Moldovan <ionic@ionic.de> | 2018-02-27 02:56:01 +0100 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2018-02-27 02:56:01 +0100 |
commit | 3fffa5bd81650ffae994df1158d17c9e1d9410d2 (patch) | |
tree | 6cf8e93ad29709867617cb03b89bfbc6356126c5 /nx-X11/programs/Xserver/hw | |
parent | eaae96101dfb2b341c61060e7cf280bf3b9084e0 (diff) | |
parent | 7368b45408690620b8a9c051670888b684e44637 (diff) | |
download | nx-libs-3fffa5bd81650ffae994df1158d17c9e1d9410d2.tar.gz nx-libs-3fffa5bd81650ffae994df1158d17c9e1d9410d2.tar.bz2 nx-libs-3fffa5bd81650ffae994df1158d17c9e1d9410d2.zip |
Merge branch 'uli42-pr/update_mi' into 3.6.x
Attributes GH PR #650: https://github.com/ArcticaProject/nx-libs/pull/650
Diffstat (limited to 'nx-X11/programs/Xserver/hw')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c b/nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c index bcb88d42d..04f746aaf 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c +++ b/nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c @@ -504,7 +504,7 @@ int what; BITS32 gcmask, index, mask; RegionRec prgnWin; DDXPointRec oldCorner; - BoxRec box; + BoxRec box = {0}; WindowPtr pBgWin; GCPtr pGC; register int i; @@ -566,8 +566,7 @@ int what; } } - prect = (xRectangle *)malloc(RegionNumRects(prgn) * - sizeof(xRectangle)); + prect = (xRectangle *)calloc(RegionNumRects(prgn), sizeof(xRectangle)); if (!prect) return; |