From 76113b8a06e19f0a1ebef245daa0f645f6322367 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Mon, 17 Feb 2014 17:55:16 +0100 Subject: [PATCH] Avoid initializing a VLA of 0 length --- openbox/place.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbox/place.c b/openbox/place.c index 19bd924..91f87dc 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -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; -- 1.9.1