]> Dogcows Code - chaz/openbox/commitdiff
compare it to null like i do elsewhere
authorDana Jansens <danakj@orodu.net>
Sun, 23 Mar 2003 20:45:31 +0000 (20:45 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 23 Mar 2003 20:45:31 +0000 (20:45 +0000)
openbox/stacking.c

index 081bde932bb8b0cefbc91e3a2bc4c9dac0eef10a..be6d07d6daaa0d0a590da95eb97c5ebb18d0615b 100644 (file)
@@ -18,7 +18,7 @@ void stacking_set_list()
     if (size > 0) {
        windows = g_new(Window, size);
        win_it = windows;
-       for (it = g_list_last(stacking_list); it; it = it->prev, ++win_it)
+       for (it = g_list_last(stacking_list); it != NULL; it = it->prev, ++win_it)
            *win_it = ((Client*)it->data)->window;
     } else
        windows = NULL;
@@ -46,7 +46,7 @@ void stacking_raise(Client *client)
   
     /* the stacking list is from highest to lowest */
     it = stacking_list;
-    while (it) {
+    while (it != NULL) {
        Client *c = it->data;
        if (client->layer >= c->layer && m != c)
            break;
This page took 0.023063 seconds and 4 git commands to generate.