[glib] gobject/tests/closure: fix on win32



commit 88ab63155de12a995c53711c65cc25026912171e
Author: Dan Winship <danw gnome org>
Date:   Thu Jul 18 08:11:35 2013 -0400

    gobject/tests/closure: fix on win32
    
    (The g_closure_unref() was wrong, but was not causing errors on linux
    for some reason.)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704447

 gobject/tests/closure.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gobject/tests/closure.c b/gobject/tests/closure.c
index 78392ba..8ecb058 100644
--- a/gobject/tests/closure.c
+++ b/gobject/tests/closure.c
@@ -104,7 +104,7 @@ test_closure_child (void)
   GError *error = NULL;
   gchar *argv[3];
 
-  g_assert (getenv ("DO_NOT_ACCIDENTALLY_RECURSE") == NULL);
+  g_assert (g_getenv ("DO_NOT_ACCIDENTALLY_RECURSE") == NULL);
   g_setenv ("DO_NOT_ACCIDENTALLY_RECURSE", "1", TRUE);
 
   if (g_path_is_absolute (g_get_prgname ()))


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