summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/add.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/add.c b/examples/add.c
index cab57dca7..a0edf4376 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;
}