Diff of /libop/op_events.c [00c2ec] .. [3b11e2]  Maximize  Restore

Switch to side-by-side view

--- a/libop/op_events.c
+++ b/libop/op_events.c
@@ -1064,6 +1064,14 @@
 	}
 	evt.unit = tmp_um_no_dups;
 
+	// Now check if passed um==0 and if the defined event has a UM with value '0'.
+	if (!passed_um) {
+		for (i = 0; i < evt.unit->num; i++) {
+			if (!evt.unit->um[i].value)
+				return 1;
+		}
+	}
+
 	/* Finally, we'll see if the passed unit mask value can be matched with a
 	 * mask of available unit mask values. We check for this by determining
 	 * whether the exact bits set in the current um are also set in the