summaryrefslogtreecommitdiff
path: root/openbox/openbox.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2008-01-20 18:34:26 -0500
committerDana Jansens <danakj@orodu.net>2008-01-20 18:34:26 -0500
commitb77a03a1f22e3e474c1338416ec30681c6216b0d (patch)
tree5251bda3e02337f3b215d2283ca8c1a14df6112c /openbox/openbox.c
parent6a8a8531bad25c148b4c62263d16c0996a21ca6e (diff)
only unset the startup_desktop_id once, and dont free the string we pass to putenv
Diffstat (limited to 'openbox/openbox.c')
-rw-r--r--openbox/openbox.c4
1 files changed, 1 insertions, 3 deletions
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)