diff options
author | Roland Baer <roland@Vista.(none)> | 2007-08-17 11:28:27 +0300 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2007-08-17 12:01:13 +0200 |
commit | e0d0691be4a5b156d70c95e6eb66c5ac28dccfc2 (patch) | |
tree | ce78fbc4596126354b75d54ee2817a4ae2853e52 /selection.c | |
parent | 17a0f50f105e3513d27f17a38fc94a0009d9b64e (diff) | |
download | group-e0d0691be4a5b156d70c95e6eb66c5ac28dccfc2.tar.gz group-e0d0691be4a5b156d70c95e6eb66c5ac28dccfc2.tar.bz2 |
Added necessary checks on return value of XCreateRegion()
Diffstat (limited to 'selection.c')
-rw-r--r-- | selection.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/selection.c b/selection.c index 53d2f9d..cab8866 100644 --- a/selection.c +++ b/selection.c @@ -39,6 +39,9 @@ groupWindowInRegion (CompWindow *w, BOX *box; buf = XCreateRegion (); + if (!buf) { + return FALSE; + } XIntersectRegion (w->region, src, buf); /* buf area */ |