X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fopenbox.c;h=ff226af4dcf30a72b815e08170d8247f59b3a0c0;hb=040d344a89f40487de8a1920e0aaeccd93a6a995;hp=6f47fbd0cc5ba6f4d6f9cd202950ae2d50c60c33;hpb=5f045992f16f37de24a71ea089b9494d4ed9848c;p=chaz%2Fopenbox diff --git a/openbox/openbox.c b/openbox/openbox.c index 6f47fbd0..ff226af4 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -512,7 +512,9 @@ static void remove_args(gint *argc, gchar **argv, gint index, gint num) static void parse_env() { /* unset this so we don't pass it on unknowingly */ - putenv("DESKTOP_STARTUP_ID"); + gchar *s = g_strdup("DESKTOP_STARTUP_ID"); + putenv(s); + g_free(s); } static void parse_args(gint *argc, gchar **argv)