summaryrefslogtreecommitdiff
path: root/examples/showindex.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/showindex.c')
-rw-r--r--examples/showindex.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/showindex.c b/examples/showindex.c
index e92a9c8de..93718c89b 100644
--- a/examples/showindex.c
+++ b/examples/showindex.c
@@ -12,6 +12,8 @@ int main (int argc, char** argv)
char out[41];
out[40] = '\0';
+ git_threads_init();
+
if (argc > 1)
dir = argv[1];
if (!dir || argc > 2) {
@@ -62,6 +64,8 @@ int main (int argc, char** argv)
git_index_free(index);
git_repository_free(repo);
+ git_threads_shutdown();
+
return 0;
}