[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Use get_environment(), not environ.
commit 1d36693570e5e2994a05b8860a4fceaf81be306a
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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));
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits