]> Dogcows Code - chaz/openbox/commitdiff
fix 1 crash.
authorDana Jansens <danakj@orodu.net>
Wed, 13 Jun 2007 11:17:02 +0000 (11:17 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 13 Jun 2007 11:17:02 +0000 (11:17 +0000)
openbox/screen.c

index 0563148e95a4e0ce56fcf57338d74e24e8720166..24fa84ed51a533fa76113ac36c542d1db0279f3a 100644 (file)
@@ -1098,8 +1098,7 @@ void screen_install_colormap(ObClient *client, gboolean install)
                       monitor_area[i].x, monitor_area[i].width))
 
 #define RESET_STRUT_LIST(sl) \
-    {for (i = 0; sl[i]; ++i) \
-         g_slist_free(sl[i]); \
+    {if (sl) for (i = 0; sl[i]; ++i) g_slist_free(sl[i]); \
      sl = g_renew(GSList*, sl, screen_num_desktops + 1); \
      sl[screen_num_desktops] = NULL;} /* null terminated */
 
This page took 0.026209 seconds and 4 git commands to generate.