[glib-networking/fix-proxy-test] proxy/tests/common.c: Use g_getenv() instead of getenv()
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/fix-proxy-test] proxy/tests/common.c: Use g_getenv() instead of getenv()
- Date: Mon, 21 Feb 2022 12:07:43 +0000 (UTC)
commit d574701203312aa7c671cbda0e11d6d917e2d6fa
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.
Part-of: <https://gitlab.gnome.org/GNOME/glib-networking/-/merge_requests/207>
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]