[glib] In gdbus-auth test, use g_unsetenv(), not g_setenv() with a NULL value



commit 101ddfe22f0313c5159bda754697a59b559e7718
Author: David Zeuthen <zeuthen gmail com>
Date:   Thu Jan 3 13:34:21 2013 -0500

    In gdbus-auth test, use g_unsetenv(), not g_setenv() with a NULL value
    
    Signed-off-by: David Zeuthen <zeuthen gmail com>

 gio/tests/gdbus-auth.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/tests/gdbus-auth.c b/gio/tests/gdbus-auth.c
index fddd4cd..c34b982 100644
--- a/gio/tests/gdbus-auth.c
+++ b/gio/tests/gdbus-auth.c
@@ -273,8 +273,8 @@ temp_dbus_keyrings_teardown (void)
   g_assert (rmdir (temp_dbus_keyrings_dir) == 0);
 
   temp_dbus_keyrings_dir = NULL;
-  g_setenv ("G_DBUS_COOKIE_SHA1_KEYRING_DIR", NULL, TRUE);
-  g_setenv ("G_DBUS_COOKIE_SHA1_KEYRING_DIR_IGNORE_PERMISSION", NULL, TRUE);
+  g_unsetenv ("G_DBUS_COOKIE_SHA1_KEYRING_DIR");
+  g_unsetenv ("G_DBUS_COOKIE_SHA1_KEYRING_DIR_IGNORE_PERMISSION");
 }
 
 /* ---------------------------------------------------------------------------------------------------- */



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