From 70839e1321de0c77c9a571ef334dd32998d5e0da Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Wed, 12 Dec 2012 13:34:07 +0100 Subject: [PATCH] fix segfault --- dunst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dunst.c b/dunst.c index 2835e14..99a4fc8 100644 --- a/dunst.c +++ b/dunst.c @@ -935,7 +935,7 @@ int close_notification_by_id(int id, int reason) } for (n_queue *iter = queue; iter; iter = iter->next) { - notification *n = iter->next->n; + notification *n = iter->n; if (n->id == id) { n_queue_remove(&queue, n); n_stack_push(&history, n);