From 9ae73b7a2adfb973cb72536e95d8311b0875b30c Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 24 Dec 2012 15:13:47 +0100 Subject: [PATCH] fix possibly uninitialized variable (Thanks knopwob) --- src/con.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/con.c b/src/con.c index ad5025a9..70c7d7f5 100644 --- a/src/con.c +++ b/src/con.c @@ -1573,6 +1573,10 @@ char *con_get_tree_representation(Con *con) { buf = sstrdup("T["); else if (con->layout == L_STACKED) buf = sstrdup("S["); + else { + ELOG("BUG: Code not updated to account for new layout type\n"); + assert(false); + } /* 2) append representation of children */ Con *child; -- 2.39.5