[tor/master] Use get_environment(), not environ.

17 Feb
2012
17 Feb
'12
4:46 p.m.
commit 1d36693570e5e2994a05b8860a4fceaf81be306a Author: Nick Mathewson <nickm@torproject.org> Date: Fri Feb 17 11:50:19 2012 -0500 Use get_environment(), not environ. --- src/common/util.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/common/util.c b/src/common/util.c index 509477a..5fd8c2d 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -3840,7 +3840,7 @@ get_current_process_environment_variables(void) smartlist_t *sl = smartlist_new(); char **environ_tmp; /* Not const char ** ? Really? */ - for (environ_tmp = environ; *environ_tmp; ++environ_tmp) { + for (environ_tmp = get_environment(); *environ_tmp; ++environ_tmp) { smartlist_add(sl, tor_strdup(*environ_tmp)); }
4861
Age (days ago)
4861
Last active (days ago)
0 comments
1 participants
participants (1)
-
nickm@torproject.org