diff options
author | Morten Welinder <terra@gnome.org> | 2013-12-26 07:37:17 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-12-26 07:37:17 -0500 |
commit | c26c557908fe3083e9470b2a191cd53dc907138d (patch) | |
tree | 4ccf6d89ffaac66b1d17224a684d9253ae14a265 /gio/gsubprocesslauncher.c | |
parent | 091e466095c47f60ef5b2b0c81459615169216cf (diff) |
gsubprocesslauncher: Use "env" instead of "environ"
The latter may come from system headers.
https://bugzilla.gnome.org/show_bug.cgi?id=721059
Diffstat (limited to 'gio/gsubprocesslauncher.c')
-rw-r--r-- | gio/gsubprocesslauncher.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gio/gsubprocesslauncher.c b/gio/gsubprocesslauncher.c index 3b1530053..7b1ca486c 100644 --- a/gio/gsubprocesslauncher.c +++ b/gio/gsubprocesslauncher.c @@ -224,7 +224,7 @@ g_subprocess_launcher_new (GSubprocessFlags flags) /** * g_subprocess_launcher_set_environ: * @self: a #GSubprocess - * @environ: the replacement environment + * @env: the replacement environment * * Replace the entire environment of processes launched from this * launcher with the given 'environ' variable. @@ -244,10 +244,10 @@ g_subprocess_launcher_new (GSubprocessFlags flags) **/ void g_subprocess_launcher_set_environ (GSubprocessLauncher *self, - gchar **environ) + gchar **env) { g_strfreev (self->envp); - self->envp = g_strdupv (environ); + self->envp = g_strdupv (env); } /** |