Commit 59565a05 by Edward Thomson

errors: use GIT_ASSERT

parent 5d6c2f26
...@@ -99,7 +99,7 @@ int git_error_set_str(int error_class, const char *string) ...@@ -99,7 +99,7 @@ int git_error_set_str(int error_class, const char *string)
{ {
git_buf *buf = &GIT_THREADSTATE->error_buf; git_buf *buf = &GIT_THREADSTATE->error_buf;
assert(string); GIT_ASSERT_ARG(string);
if (!string) { if (!string) {
git_error_set(GIT_ERROR_INVALID, "unspecified caller error"); git_error_set(GIT_ERROR_INVALID, "unspecified caller error");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment