Skip to content

Commit

Permalink
wm/tree: fix uninitialized tree->gen in unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Jun 27, 2024
1 parent 15ed5bd commit f126d47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wm/wm_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ void wm_tree_set_wm_state(struct wm_tree *tree, struct wm_tree_node *node, bool

static inline void wm_tree_init(struct wm_tree *tree) {
tree->nodes = NULL;
tree->gen = 1;
list_init_head(&tree->changes);
list_init_head(&tree->free_changes);
}

0 comments on commit f126d47

Please sign in to comment.