Make work if built with threading enabled
diff --git a/examples/add.c b/examples/add.c
index cab57dc..a0edf43 100644
--- a/examples/add.c
+++ b/examples/add.c
@@ -106,6 +106,8 @@ int main (int argc, char** argv)
return 1;
}
+ git_threads_init();
+
init_array(&array, argc-i, argv+i);
if (git_repository_open(&repo, ".") < 0) {
@@ -135,5 +137,7 @@ int main (int argc, char** argv)
git_index_free(index);
git_repository_free(repo);
+ git_threads_shutdown();
+
return 0;
}