diff options
author | fvogel <fvogelnew1@free.fr> | 2023-07-16 13:01:02 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2023-07-16 13:01:02 (GMT) |
commit | 32e85c199e36f68c80a08a50c6610a3990c54499 (patch) | |
tree | 4d86f41a3bc43db1b93eac3b0f62d38079d68374 /xlib | |
parent | 17cd772470e5867a435c8475e35b6cbba1a63737 (diff) | |
download | tk-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |