[gnome-control-center/benzea/misc-sanitiser-issues: 3/3] tests: Use setlocal rather than setting environment variable
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/benzea/misc-sanitiser-issues: 3/3] tests: Use setlocal rather than setting environment variable
- Date: Thu, 7 May 2020 16:32:07 +0000 (UTC)
commit ab18098d5521744b13f69c0b4b88964f96eb06ee
Author: Benjamin Berg <bberg redhat com>
Date: Thu May 7 18:30:48 2020 +0200
tests: Use setlocal rather than setting environment variable
This fixes a problem reported by the memory sanitizer.
tests/network/test-network-panel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/network/test-network-panel.c b/tests/network/test-network-panel.c
index 1f89e2187..8cc9d2f1d 100644
--- a/tests/network/test-network-panel.c
+++ b/tests/network/test-network-panel.c
@@ -648,7 +648,7 @@ main (int argc, char **argv)
{
g_setenv ("GSETTINGS_BACKEND", "memory", TRUE);
g_setenv ("LIBNM_USE_SESSION_BUS", "1", TRUE);
- g_setenv ("LC_ALL", "C", TRUE);
+ setlocale ("LC_ALL", "C");
gtk_test_init (&argc, &argv, NULL);
hdy_init (&argc, &argv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]