diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-02-17 11:50:19 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-02-17 11:50:19 -0500 |
commit | 1d36693570e5e2994a05b8860a4fceaf81be306a (patch) | |
tree | 8f638af1a3d45d1c217f221d0214fd9ad4159258 /src/common | |
parent | eaedcba49315f3fe384c379f30692793ca9da18e (diff) | |
download | tor-1d36693570e5e2994a05b8860a4fceaf81be306a.tar tor-1d36693570e5e2994a05b8860a4fceaf81be306a.tar.gz |
Use get_environment(), not environ.
Diffstat (limited to 'src/common')
-rw-r--r-- | 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 509477ad8..5fd8c2dca 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)); } |