Commit 59565a0581cafd7cb8acbba7028877f2bd6faca9

Edward Thomson 2020-04-05T16:23:40

errors: use GIT_ASSERT

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/errors.c b/src/errors.c
index d4da50d..5b68dd9 100644
--- a/src/errors.c
+++ b/src/errors.c
@@ -99,7 +99,7 @@ int git_error_set_str(int error_class, const char *string)
 {
 	git_buf *buf = &GIT_THREADSTATE->error_buf;
 
-	assert(string);
+	GIT_ASSERT_ARG(string);
 
 	if (!string) {
 		git_error_set(GIT_ERROR_INVALID, "unspecified caller error");