summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-04-23 16:21:47 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-04-23 16:21:47 +0200
commit6c1b6b7abcef75d421e4d59c397eff54cc1f28aa (patch)
tree4bea5851741e9a84dc57b2247b1f78dd570adec5
parenta5de9044270e29b2388185bec02d7c0de301e7d1 (diff)
downloadlibgit2-6c1b6b7abcef75d421e4d59c397eff54cc1f28aa.tar.gz
examples: init the threading system
-rw-r--r--examples/network/git2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/network/git2.c b/examples/network/git2.c
index ecb16630b..5b32ac809 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);