From c6f62f4695ae66cf0fea498c7ac4ab21ba68faae Mon Sep 17 00:00:00 2001
From: Orestis Floros <orestisflo@gmail.com>
Date: Sun, 3 Sep 2023 19:32:42 +0200
Subject: [PATCH 1/1] Fix crashes when using machine criterion (#5650)

Fixes #5616
---
 release-notes/bugfixes/4-machine-crash | 1 +
 src/match.c                            | 1 +
 2 files changed, 2 insertions(+)
 create mode 100644 release-notes/bugfixes/4-machine-crash

diff --git a/release-notes/bugfixes/4-machine-crash b/release-notes/bugfixes/4-machine-crash
new file mode 100644
index 00000000..24dc04ee
--- /dev/null
+++ b/release-notes/bugfixes/4-machine-crash
@@ -0,0 +1 @@
+fix crashes when using machine criterion
diff --git a/src/match.c b/src/match.c
index 34314e25..cfd7d324 100644
--- a/src/match.c
+++ b/src/match.c
@@ -80,6 +80,7 @@ void match_copy(Match *dest, Match *src) {
     DUPLICATE_REGEX(instance);
     DUPLICATE_REGEX(window_role);
     DUPLICATE_REGEX(workspace);
+    DUPLICATE_REGEX(machine);
 }
 
 /*
-- 
2.20.1

