Bugfix: fix crash in tree_flatten (Thanks mseed)
This commit is contained in:
@@ -525,7 +525,7 @@ void tree_flatten(Con *con) {
|
|||||||
|
|
||||||
/* Ensure it got only one child */
|
/* Ensure it got only one child */
|
||||||
child = TAILQ_FIRST(&(con->nodes_head));
|
child = TAILQ_FIRST(&(con->nodes_head));
|
||||||
if (TAILQ_NEXT(child, nodes) != NULL)
|
if (child == NULL || TAILQ_NEXT(child, nodes) != NULL)
|
||||||
goto recurse;
|
goto recurse;
|
||||||
|
|
||||||
/* The child must have a different orientation than the con but the same as
|
/* The child must have a different orientation than the con but the same as
|
||||||
|
Reference in New Issue
Block a user