From 4507b704e0fed79dc42d7a49e7102a87873d49a5 Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Fri, 13 Jul 2012 10:19:02 +0200 Subject: [PATCH] don't initialize i to itself --- dunst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dunst.c b/dunst.c index 9178b4e..0ca5e79 100644 --- a/dunst.c +++ b/dunst.c @@ -542,7 +542,7 @@ void handle_mouse_click(XEvent ev) move_all_to_history(); } else if (ev.xbutton.button == Button1) { int i = ev.xbutton.y / font_h; - for (i = i; i > 0; i--) { + for (; i > 0; i--) { /* if the user clicks on the "(x more)" message, * keep iter at the last displayed message and * remove that instead