mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Use get_environment(), not environ.
This commit is contained in:
+1
-1
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user