From 97472e374f821f71e94cdebdfe7fff6f0bd837c1 Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 14 Jun 2026 08:47:44 +0000 Subject: [PATCH] Return early if connect construct cell, reported by Jere Viikari. --- layout-custom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layout-custom.c b/layout-custom.c index 0dc1abc1..0fc3f5d1 100644 --- a/layout-custom.c +++ b/layout-custom.c @@ -379,6 +379,8 @@ layout_construct(struct layout_cell *lcparent, const char **layout, struct layout_cell *lcchild; *lc = layout_construct_cell(lcparent, layout); + if (*lc == NULL) + return (-1); switch (**layout) { case ',':