From: Dana Jansens Date: Fri, 11 Jan 2008 20:18:04 +0000 (-0500) Subject: fix a warning from crappy libc apis X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=1789d4564514c4cefe3d2e9d2b7b65119784b53c;p=chaz%2Fopenbox fix a warning from crappy libc apis --- 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)