g_thread_init should be called before any other glib function.
authorXan Lopez <xan@src.gnome.org>
Thu, 13 Mar 2008 10:35:28 +0000 (10:35 +0000)
committerXan Lopez <xan@src.gnome.org>
Thu, 13 Mar 2008 10:35:28 +0000 (10:35 +0000)
svn path=/trunk/; revision=1105

ChangeLog
tests/dns.c
tests/get.c
tests/getbug.c
tests/simple-httpd.c
tests/simple-proxy.c
tests/ssl-test.c
tests/test-utils.c

index 42c6a6e..9bda0c3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2008-03-13  Xan Lopez  <xan@gnome.org>
+
+        * tests/dns.c: (main):
+        * tests/get.c: (main):
+        * tests/getbug.c: (main):
+        * tests/simple-httpd.c: (main):
+        * tests/simple-proxy.c: (main):
+        * tests/ssl-test.c: (main):
+        * tests/test-utils.c: (test_init):
+
+        g_thread_init should be called before any other glib function. (#522117)
+
 2008-03-10  Dan Winship  <danw@gnome.org>
 
        * configure.in: 2.4.0!
index 10d6b98..e93b0a4 100644 (file)
@@ -41,8 +41,8 @@ main (int argc, char **argv)
        if (argc < 2)
                usage ();
 
-       g_type_init ();
        g_thread_init (NULL);
+       g_type_init ();
 
        for (i = 1; i < argc; i++) {
                addr = soup_address_new (argv[i], 0);
index a1b12a5..c6cd9d9 100644 (file)
@@ -226,8 +226,8 @@ main (int argc, char **argv)
        gboolean synchronous = FALSE;
        int opt;
 
-       g_type_init ();
        g_thread_init (NULL);
+       g_type_init ();
 
        method = SOUP_METHOD_GET;
 
index 5cef372..a6c3bc7 100644 (file)
@@ -95,8 +95,8 @@ main (int argc, char **argv)
        const char *uri = "http://bugzilla.redhat.com/bugzilla/xmlrpc.cgi";
        int opt, bug;
 
-       g_type_init ();
        g_thread_init (NULL);
+       g_type_init ();
 
        while ((opt = getopt (argc, argv, "p:")) != -1) {
                switch (opt) {
index 6667251..7c7df62 100644 (file)
@@ -201,8 +201,8 @@ main (int argc, char **argv)
        int ssl_port = SOUP_ADDRESS_ANY_PORT;
        const char *ssl_cert_file = NULL, *ssl_key_file = NULL;
 
-       g_type_init ();
        g_thread_init (NULL);
+       g_type_init ();
        signal (SIGINT, quit);
 
        while ((opt = getopt (argc, argv, "p:k:c:s:")) != -1) {
index cc3da2b..fc50063 100644 (file)
@@ -135,8 +135,8 @@ main (int argc, char **argv)
        int opt;
        int port = SOUP_ADDRESS_ANY_PORT;
 
-       g_type_init ();
        g_thread_init (NULL);
+       g_type_init ();
        signal (SIGINT, quit);
 
        while ((opt = getopt (argc, argv, "p:s:")) != -1) {
index 13eed66..92e9902 100644 (file)
@@ -225,8 +225,8 @@ main (int argc, char **argv)
        SoupSocketIOStatus status;
        GError *error = NULL;
 
-       g_type_init ();
        g_thread_init (NULL);
+       g_type_init ();
 
        while ((opt = getopt (argc, argv, "c:d:k:")) != -1) {
                switch (opt) {
index b7564a4..3c1005b 100644 (file)
@@ -70,8 +70,8 @@ test_init (int argc, char **argv, GOptionEntry *entries)
        char *name;
        GError *error = NULL;
 
-       g_type_init ();
        g_thread_init (NULL);
+       g_type_init ();
 
        name = strrchr (argv[0], '/');
        if (!name++)