From: Michael Stapelberg Date: Mon, 24 Dec 2012 14:13:47 +0000 (+0100) Subject: fix possibly uninitialized variable (Thanks knopwob) X-Git-Tag: 4.5~93 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9ae73b7a2adfb973cb72536e95d8311b0875b30c;p=i3%2Fi3 fix possibly uninitialized variable (Thanks knopwob) --- 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;