Avoid initializing a VLA of 0 length
[dana/openbox.git] / openbox / place.c
index 19bd924..91f87dc 100644 (file)
@@ -444,7 +444,7 @@ static gboolean place_least_overlap(ObClient *c, Rect *head, int *x, int *y,
         }
     }
 
-    {
+    if (n_client_rects) {
         Rect client_rects[n_client_rects];
         GSList* it;
         Point result;