]> Dogcows Code - chaz/openbox/commitdiff
dont deref the client before checking for null
authorDana Jansens <danakj@orodu.net>
Wed, 10 Sep 2003 17:10:11 +0000 (17:10 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 10 Sep 2003 17:10:11 +0000 (17:10 +0000)
openbox/action.c

index efc7f1ef513b89dba2bac42d9fb692e2ef2e3556..98097d7a9bf60b370003ba7255e73296e3f6d7eb 100644 (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;
This page took 0.025 seconds and 4 git commands to generate.