diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-11 15:18:04 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-11 15:18:04 -0500 |
| commit | 1789d4564514c4cefe3d2e9d2b7b65119784b53c (patch) | |
| tree | 0720c5c8811e22b36153e53fed7dd4be5b10476d /openbox | |
| parent | 1cb287e130ee662002baeec809c42498da38b878 (diff) | |
fix a warning from crappy libc apis
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/openbox.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) |
