projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cb287e
)
fix a warning from crappy libc apis
author
Dana Jansens
<danakj@orodu.net>
Fri, 11 Jan 2008 20:18:04 +0000
(15:18 -0500)
committer
Dana Jansens
<danakj@orodu.net>
Fri, 11 Jan 2008 20:18:04 +0000
(15:18 -0500)
openbox/openbox.c
patch
|
blob
|
history
diff --git
a/openbox/openbox.c
b/openbox/openbox.c
index
6f47fbd
..
ff226af
100644
(file)
--- 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)