summaryrefslogtreecommitdiffstats
path: root/xlib
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-07-16 13:01:02 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-07-16 13:01:02 (GMT)
commit32e85c199e36f68c80a08a50c6610a3990c54499 (patch)
tree4d86f41a3bc43db1b93eac3b0f62d38079d68374 /xlib
parent17cd772470e5867a435c8475e35b6cbba1a63737 (diff)
downloadtk-32e85c199e36f68c80a08a50c6610a3990c54499.zip
tk-32e85c199e36f68c80a08a50c6610a3990c54499.tar.gz
tk-32e85c199e36f68c80a08a50c6610a3990c54499.tar.bz2
Bug [f9eddb541a] (TkSetRegion(), XSetClipRectangles): Patch 2 from Christopher Chavez - For safety, have AllocClipMask() initialize the TkpClipMask.
Diffstat (limited to 'xlib')
-rw-r--r--xlib/xgc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlib/xgc.c b/xlib/xgc.c
index 786a6fd..1f13406 100644
--- a/xlib/xgc.c
+++ b/xlib/xgc.c
@@ -50,6 +50,8 @@ static TkpClipMask *AllocClipMask(GC gc) {
clip_mask = (TkpClipMask *)ckalloc(sizeof(TkpClipMask));
gc->clip_mask = (Pixmap) clip_mask;
}
+ clip_mask->type = TKP_CLIP_PIXMAP;
+ clip_mask->value.pixmap = None;
return clip_mask;
}