diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-02-28 23:15:22 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2019-02-28 23:15:22 +0100 |
commit | e7a50079ed90bd9f9f292d3f40ed3905c034a4cc (patch) | |
tree | 76679bd38f93ec2b069e20db90d4e602d368d0ec /nx-X11/programs/Xserver | |
parent | c6b6a8fcb75023b89ec1d4b9f3ce3c9eb44764e1 (diff) | |
download | nx-libs-e7a50079ed90bd9f9f292d3f40ed3905c034a4cc.tar.gz nx-libs-e7a50079ed90bd9f9f292d3f40ed3905c034a4cc.tar.bz2 nx-libs-e7a50079ed90bd9f9f292d3f40ed3905c034a4cc.zip |
xfixes: use calloc for some structs
Attributes ArcticaProject/nx-libs#382
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r-- | nx-X11/programs/Xserver/xfixes/cursor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/xfixes/cursor.c b/nx-X11/programs/Xserver/xfixes/cursor.c index 8f258e32f..fc4c1d803 100644 --- a/nx-X11/programs/Xserver/xfixes/cursor.c +++ b/nx-X11/programs/Xserver/xfixes/cursor.c @@ -201,7 +201,7 @@ XFixesSelectCursorInput (ClientPtr pClient, } if (!e) { - e = (CursorEventPtr) malloc (sizeof (CursorEventRec)); + e = (CursorEventPtr) calloc (1, sizeof (CursorEventRec)); if (!e) return BadAlloc; @@ -759,7 +759,7 @@ createCursorHideCount (ClientPtr pClient, ScreenPtr pScreen) CursorScreenPtr cs = GetCursorScreen(pScreen); CursorHideCountPtr pChc; - pChc = (CursorHideCountPtr) malloc(sizeof(CursorHideCountRec)); + pChc = (CursorHideCountPtr) calloc(1, sizeof(CursorHideCountRec)); if (pChc == NULL) { return BadAlloc; } |