X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fopenbox.c;h=0c74b255bae8fdef00a64f4b54c8bacf975b064c;hb=0cc2216b99e047326b37586801735d0a0dacc406;hp=48f31f9140f5c2b3ab0749100f302e2ed5421fc9;hpb=299687110d478a4928932f72031c345b27a01840;p=chaz%2Fopenbox diff --git a/openbox/openbox.c b/openbox/openbox.c index 48f31f91..0c74b255 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -515,9 +515,7 @@ 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 */ - gchar *s = g_strdup("DESKTOP_STARTUP_ID"); - putenv(s); - g_free(s); + putenv(g_strdup("DESKTOP_STARTUP_ID")); } static void parse_args(gint *argc, gchar **argv)