fix a warning from crappy libc apis

This commit is contained in:
Dana Jansens 2008-01-11 15:18:04 -05:00
parent 1cb287e130
commit 1789d45645

View file

@ -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)