summaryrefslogtreecommitdiffstats
path: root/xlib
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2022-08-20 13:32:40 (GMT)
committerfvogel <fvogelnew1@free.fr>2022-08-20 13:32:40 (GMT)
commit47cb8e339368de9b6385f7ee0f2622cfbf527eac (patch)
tree9a40a57b7bffa70918e87ab0fddf6335865336a4 /xlib
parent941c193bfe6401621941d1f6c3106850b430189b (diff)
parente007a4242506207d5eacef0f7d28047c455a969e (diff)
downloadtk-47cb8e339368de9b6385f7ee0f2622cfbf527eac.zip
tk-47cb8e339368de9b6385f7ee0f2622cfbf527eac.tar.gz
tk-47cb8e339368de9b6385f7ee0f2622cfbf527eac.tar.bz2
Fix [71b1e5e331]: xgc.c: useless NULL check in XCreateGC(). Thanks to Christopher Chavez.
Diffstat (limited to 'xlib')
-rw-r--r--xlib/xgc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/xlib/xgc.c b/xlib/xgc.c
index 873dcce..834a2c4 100644
--- a/xlib/xgc.c
+++ b/xlib/xgc.c
@@ -107,9 +107,6 @@ XCreateGC(
*/
gp = (GC)ckalloc(sizeof(XGCValuesWithDash));
- if (!gp) {
- return NULL;
- }
#define InitField(name,maskbit,default) \
(gp->name = (mask & (maskbit)) ? values->name : (default))