fix possibly uninitialized variable (Thanks knopwob)

This commit is contained in:
Michael Stapelberg 2012-12-24 15:13:47 +01:00
parent 5a567057ab
commit 9ae73b7a2a
1 changed files with 4 additions and 0 deletions

View File

@ -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;