mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gsubprocesslauncher: Use "env" instead of "environ"
The latter may come from system headers. https://bugzilla.gnome.org/show_bug.cgi?id=721059
This commit is contained in:
parent
091e466095
commit
c26c557908
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -56,7 +56,7 @@ GSubprocess * g_subprocess_launcher_spawnv (GSubpro
|
||||
|
||||
GLIB_AVAILABLE_IN_2_40
|
||||
void g_subprocess_launcher_set_environ (GSubprocessLauncher *self,
|
||||
gchar **environ);
|
||||
gchar **env);
|
||||
|
||||
GLIB_AVAILABLE_IN_2_40
|
||||
void g_subprocess_launcher_setenv (GSubprocessLauncher *self,
|
||||
|
Loading…
Reference in New Issue
Block a user