From 1789d4564514c4cefe3d2e9d2b7b65119784b53c Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 11 Jan 2008 15:18:04 -0500 Subject: [PATCH 1/1] fix a warning from crappy libc apis --- openbox/openbox.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.44.0