]> Dogcows Code - chaz/openbox/commitdiff
putenv wants a char*, not a const
authorDana Jansens <danakj@orodu.net>
Sun, 20 Jan 2008 06:36:37 +0000 (01:36 -0500)
committerDana Jansens <danakj@orodu.net>
Sun, 20 Jan 2008 06:36:37 +0000 (01:36 -0500)
openbox/startupnotify.c

index 4c929e7eaf12c786e31fd10895f5acaef009a4c7..66bce264c13a68db853e53cacfbbb2e022bdd46b 100644 (file)
@@ -58,10 +58,14 @@ static void sn_event_func(SnMonitorEvent *event, gpointer data);
 
 void sn_startup(gboolean reconfig)
 {
+    gchar *s;
+
     if (reconfig) return;
 
     /* unset this so we don't pass it on unknowingly */
-    putenv("DESKTOP_STARTUP_ID");
+    s = g_strdup("DESKTOP_STARTUP_ID");
+    putenv(s);
+    g_free(s);
 
     sn_display = sn_display_new(ob_display, NULL, NULL);
     sn_context = sn_monitor_context_new(sn_display, ob_screen,
This page took 0.028874 seconds and 4 git commands to generate.