aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
-rw-r--r--cooker/filter.c3
1 files changed, 2 insertions, 1 deletions
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;