Commit f9cf12b4f58588309c0329d0525f1505f579c32d

Vicent Marti 2012-10-02T20:23:54

clar: Proper shutdown order

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/tests-clar/clar_helpers.c b/tests-clar/clar_helpers.c
index 8d6a702..f0ce37c 100644
--- a/tests-clar/clar_helpers.c
+++ b/tests-clar/clar_helpers.c
@@ -8,8 +8,8 @@ void clar_on_init(void)
 
 void clar_on_shutdown(void)
 {
-	git_threads_shutdown();
 	giterr_clear();
+	git_threads_shutdown();
 }
 
 void cl_git_mkfile(const char *filename, const char *content)