summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-09-10 17:10:11 +0000
committerDana Jansens <danakj@orodu.net>2003-09-10 17:10:11 +0000
commitd4f192394f94e0170e4b08577f7e1ebeff02a19c (patch)
treefa4208fb30b7a256086ae882f376c9fc765d46f1 /openbox
parente1b6c6dd90b32b4fb571005a7d7bd642a053d6c9 (diff)
dont deref the client before checking for null
Diffstat (limited to 'openbox')
-rw-r--r--openbox/action.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbox/action.c b/openbox/action.c
index efc7f1ef..98097d7a 100644
--- a/openbox/action.c
+++ b/openbox/action.c
@@ -1231,11 +1231,12 @@ void action_growtoedge(union ActionData *data)
{
int x, y, width, height, dest;
ObClient *c = data->diraction.any.c;
- Rect *a = screen_area(c->desktop);
+ Rect *a;
if (!c)
return;
+ a = = screen_area(c->desktop);
x = c->frame->area.x;
y = c->frame->area.y;
width = c->frame->area.width;