From: Mikael Magnusson Date: Mon, 17 Feb 2014 16:55:16 +0000 (+0100) Subject: Avoid initializing a VLA of 0 length X-Git-Tag: release-3.6.0~49 X-Git-Url: http://git.openbox.org/?p=dana%2Fopenbox.git;a=commitdiff_plain;h=76113b8a06e19f0a1ebef245daa0f645f6322367 Avoid initializing a VLA of 0 length --- 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;