e - tiling module - silence warning (real possibility of an issue)

grand_parent couldbe used in an uninitialized state - this is right.
it'd be garbage (not NULL). set to NULL always to be safe
This commit is contained in:
Carsten Haitzler 2014-11-25 17:11:18 +09:00
parent 93a125b7a2
commit 9d5483963a
1 changed files with 1 additions and 1 deletions

View File

@ -645,7 +645,7 @@ tiling_window_tree_node_change_pos(Window_Tree *node, int key)
_tiling_window_tree_split_type_get(node->parent);
Window_Tree *root = node->parent,
*grand_parent;
*grand_parent = NULL;
while(root->parent)
root = root->parent;