Initialize threads correctly on old versions of GLib2 (RhBug: 1108787)
authorTomas Mlcoch <tmlcoch@redhat.com>
Thu, 26 Jun 2014 13:28:51 +0000 (15:28 +0200)
committerTomas Mlcoch <tmlcoch@redhat.com>
Thu, 26 Jun 2014 13:28:51 +0000 (15:28 +0200)
src/mergerepo_c.c
src/modifyrepo_c.c

index eec81ad..90d0a7d 100644 (file)
@@ -1555,6 +1555,7 @@ main(int argc, char **argv)
         return 1;
     }
 
+    g_thread_init(NULL); // Initialize threading
 
     // Prepare out_repo
 
index 467b277..804587d 100644 (file)
@@ -279,6 +279,8 @@ main(int argc, char **argv)
         exit(EXIT_FAILURE);
     }
 
+    g_thread_init(NULL); // Initialize threading
+
     // Prepare list of tasks to do
 
     gchar *repodatadir = NULL;