aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-04-21 14:44:26 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-04-21 14:44:26 +0200
commit109a74400741f41d7eafcc5062f403cef32c4b46 (patch)
tree340462c8621fe0969141f2ba435657d98d60cfd4 /src
parent440279cb4beb81ec0c4c29ccc18ff289c7797b5f (diff)
downloadriver-109a74400741f41d7eafcc5062f403cef32c4b46.tar.gz
river-109a74400741f41d7eafcc5062f403cef32c4b46.tar.xz
Fix uninitialized values in tests
Diffstat (limited to 'src')
-rw-r--r--src/view_stack.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/view_stack.zig b/src/view_stack.zig
index c1fe4e1..2c9227f 100644
--- a/src/view_stack.zig
+++ b/src/view_stack.zig
@@ -275,6 +275,7 @@ test "iteration (View)" {
defer allocator.destroy(two_a);
two_a.view.mapped = true;
two_a.view.current_tags = 1 << 0;
+ two_a.view.pending_tags = null;
const three_b_pa = try allocator.create(ViewStack(View).Node);
defer allocator.destroy(three_b_pa);
@@ -286,11 +287,13 @@ test "iteration (View)" {
defer allocator.destroy(four_b);
four_b.view.mapped = true;
four_b.view.current_tags = 1 << 1;
+ four_b.view.pending_tags = null;
const five_b = try allocator.create(ViewStack(View).Node);
defer allocator.destroy(five_b);
five_b.view.mapped = true;
five_b.view.current_tags = 1 << 1;
+ five_b.view.pending_tags = null;
const unmapped_1 = try allocator.create(ViewStack(View).Node);
defer allocator.destroy(unmapped_1);