diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2014-02-17 17:55:16 +0100 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2014-04-10 22:29:01 +0200 |
| commit | 76113b8a06e19f0a1ebef245daa0f645f6322367 (patch) | |
| tree | 869200cdca47609493198604f71aa48d4a89a2d2 /openbox | |
| parent | 9fb4b56ba9f0ea10dd8fd289835b2f2db026335b (diff) | |
Avoid initializing a VLA of 0 length
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/place.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/place.c b/openbox/place.c index 19bd924a..91f87dca 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; |
