try again
authorDana Jansens <danakj@orodu.net>
Fri, 25 May 2007 18:24:16 +0000 (18:24 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 25 May 2007 18:24:16 +0000 (18:24 +0000)
src/handlers.c

index 749a9d145105447710581b01f58718ca3e5382a0..cb0ae51fec90666fc3d4364d6fd58e5ce8964ead 100644 (file)
@@ -1244,8 +1244,10 @@ static void set_desktop_names()
     }
 
     num = 0;
-    for (lit = desktop_names; lit && num <= last; lit = g_list_next(lit))
+    for (lit = desktop_names; lit && num <= last; lit = g_list_next(lit)) {
         xmlNewTextChild(n, NULL, "name", lit->data);
+        ++num;
+    }
     tree_apply();
 
     /* make openbox re-set the property */