]> git.sur5r.net Git - i3/i3/commitdiff
fix possibly uninitialized variable (Thanks knopwob)
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 24 Dec 2012 14:13:47 +0000 (15:13 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 24 Dec 2012 14:13:47 +0000 (15:13 +0100)
src/con.c

index ad5025a92057aa10aa16d4916065f42fcf884183..70c7d7f5a6cf8f7d07638f87376e61d9501afb18 100644 (file)
--- 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;