fix a warning from crappy libc apis
This commit is contained in:
parent
1cb287e130
commit
1789d45645
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue