dont deref the client before checking for null

This commit is contained in:
Dana Jansens 2003-09-10 17:10:11 +00:00
parent e1b6c6dd90
commit d4f192394f

View file

@ -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;