From aeaeda81af25fdc105d4157dc9e679423fdef761 Mon Sep 17 00:00:00 2001
From: Alice Frosi <afrosi@redhat.com>
Date: Tue, 16 May 2023 10:46:45 +0200
Subject: filter: increment count

---
 cooker/filter.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cooker/filter.c b/cooker/filter.c
index 9476089..98dec09 100644
--- a/cooker/filter.c
+++ b/cooker/filter.c
@@ -547,12 +547,13 @@ void filter_add_arg(int index, struct bpf_arg arg) {
 
 unsigned int filter_close_input(void)
 {
-	struct notify *call = notify_call;
+	struct notify *call;
 	int i, count = 0;
 
 	filter_notify(-1);
 
 	for (i = 0; i < 512; i++) {
+		call = notify_call + count;
 		if (filter_input[i].notify) {
 			count++;
 			call->nr = i;
-- 
cgit v1.2.3