From 54aa6357f16050d6d3523cd729040264e781cac2 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Wed, 26 Jun 2024 22:30:29 +0100 Subject: [PATCH] wm/tree: fix uninitialized tree->gen in unit test Signed-off-by: Yuxuan Shui --- src/wm/wm_internal.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wm/wm_internal.h b/src/wm/wm_internal.h index d70db89aca..f9a8c9ffb7 100644 --- a/src/wm/wm_internal.h +++ b/src/wm/wm_internal.h @@ -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); }