[glib-networking/fix-proxy-test] proxy/tests/common.c: Use g_getenv() instead of getenv()




commit 8a1f747641cfe5983ec643cdf742becfde171801
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Feb 21 18:17:40 2022 +0800

    proxy/tests/common.c: Use g_getenv() instead of getenv()
    
    getenv() does not exist on Visual Studio builds at least, but we can be
    assured that g_getenv() is.
    
    This will fix the proxy tests on Visual Studio-like builds at least.

 proxy/tests/common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/proxy/tests/common.c b/proxy/tests/common.c
index de009a03..0f805223 100644
--- a/proxy/tests/common.c
+++ b/proxy/tests/common.c
@@ -178,7 +178,7 @@ test_proxy_ignore_common (void)
   int i;
 
   resolver = g_proxy_resolver_get_default ();
-  is_libproxy = g_strcmp0 (getenv ("GIO_PROXY_TEST_NAME"), "libproxy") == 0;
+  is_libproxy = g_strcmp0 (g_getenv ("GIO_PROXY_TEST_NAME"), "libproxy") == 0;
 
   for (i = 0; i < n_ignore_tests; i++)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]