[notification-daemon] Fix a wrong loop condition



commit e9a958861b190e602176127fb86734790860b752
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Aug 31 12:00:20 2012 -0400

    Fix a wrong loop condition
    
    Always a bad sign if your condition doesn't mention
    the loop counter... pointed out by Michal Sroczynski.

 src/nd-queue.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nd-queue.c b/src/nd-queue.c
index 3675fca..de73940 100644
--- a/src/nd-queue.c
+++ b/src/nd-queue.c
@@ -507,7 +507,7 @@ destroy_screens (NdQueue *queue)
 
                 gdkwindow = gdk_screen_get_root_window (screen);
                 gdk_window_remove_filter (gdkwindow, (GdkFilterFunc) screen_xevent_filter, queue->priv->screens[i]);
-                for (j = 0; i < queue->priv->screens[i]->n_stacks; j++) {
+                for (j = 0; j < queue->priv->screens[i]->n_stacks; j++) {
                         g_object_unref (queue->priv->screens[i]->stacks[j]);
                         queue->priv->screens[i]->stacks[j] = NULL;
                 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]