diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-11-19 10:29:07 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-11-19 10:29:07 -0800 |
commit | e56e1003ab225d383cda67eb61737bc14e92332c (patch) | |
tree | 44e1cc23afc2a02ad14eb5e997dae79ed1e44769 /src/Cursor.c | |
parent | d10ec36c81a6b488d1f700a28c5bff4714287b78 (diff) |
Remove unnecessary casts from malloc & free calls
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Cursor.c')
-rw-r--r-- | src/Cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Cursor.c b/src/Cursor.c index 33590b7..4742240 100644 --- a/src/Cursor.c +++ b/src/Cursor.c @@ -193,7 +193,7 @@ XFixesGetCursorName (Display *dpy, Cursor cursor, Atom *atom) return NULL; } *atom = rep.atom; - if ((name = (char *) Xmalloc(rep.nbytes+1))) { + if ((name = Xmalloc(rep.nbytes+1)) != NULL) { _XReadPad(dpy, name, (long)rep.nbytes); name[rep.nbytes] = '\0'; } else { |