[tor-commits] [tor/master] Use get_environment(), not environ.
nickm at torproject.org
nickm at torproject.org
Fri Feb 17 16:46:49 UTC 2012
commit 1d36693570e5e2994a05b8860a4fceaf81be306a
Author: Nick Mathewson <nickm at 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));
}
More information about the tor-commits
mailing list