]> spindle.queued.net Git - midori/commitdiff
Initialize threading in completion test since location uses libsoup
authorChristian Dywan <christian@twotoasts.de>
Mon, 1 Jun 2009 04:41:57 +0000 (06:41 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 1 Jun 2009 04:41:57 +0000 (06:41 +0200)
tests/completion.c

index 80ca112adbd7df1854eeec83544be4e6892b4add..ff802bc1829ad3765df1aa69377b3f26c8e5a438 100644 (file)
@@ -282,6 +282,8 @@ int
 main (int    argc,
       char** argv)
 {
+    /* libSoup uses threads, so we need to initialize threads. */
+    if (!g_thread_supported ()) g_thread_init (NULL);
     g_test_init (&argc, &argv, NULL);
     gtk_init_check (&argc, &argv);