]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use get_environment(), not environ.
authorNick Mathewson <nickm@torproject.org>
Fri, 17 Feb 2012 16:50:19 +0000 (11:50 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 17 Feb 2012 16:50:19 +0000 (11:50 -0500)
src/common/util.c

index 509477ad842f0ea99455eeb40d0e67515b2ea730..5fd8c2dca8c5548469f90938802f879eb6d0e31e 100644 (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));
   }