Use get_environment(), not environ.

This commit is contained in:
Nick Mathewson
2012-02-17 11:50:19 -05:00
parent eaedcba493
commit 1d36693570
+1 -1
View File
@@ -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));
}