Commit 9083a0e62834123aa5172d11ee27022850ec37a9

Edward Thomson 2020-04-05T22:15:21

trace: use GIT_ASSERT

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/trace.c b/src/trace.c
index 3acb643..efc7b01 100644
--- a/src/trace.c
+++ b/src/trace.c
@@ -20,7 +20,7 @@ struct git_trace_data git_trace__data = {0};
 int git_trace_set(git_trace_level_t level, git_trace_cb callback)
 {
 #ifdef GIT_TRACE
-	assert(level == 0 || callback != NULL);
+	GIT_ASSERT_ARG(level == 0 || callback != NULL);
 
 	git_trace__data.level = level;
 	git_trace__data.callback = callback;