Commit 6c1b6b7abcef75d421e4d59c397eff54cc1f28aa

Carlos Martín Nieto 2013-04-23T16:21:47

examples: init the threading system

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/examples/network/git2.c b/examples/network/git2.c
index ecb1663..5b32ac8 100644
--- a/examples/network/git2.c
+++ b/examples/network/git2.c
@@ -54,6 +54,8 @@ int main(int argc, char **argv)
 		exit(EXIT_FAILURE);
 	}
 
+	git_threads_init();
+
 	for (i = 0; commands[i].name != NULL; ++i) {
 		if (!strcmp(argv[1], commands[i].name))
 			return run_command(commands[i].fn, --argc, ++argv);