Commit 2ab26a98 by Edward Thomson

transport: use GIT_ASSERT

parent d42e4d5f
...@@ -148,8 +148,8 @@ int git_transport_register( ...@@ -148,8 +148,8 @@ int git_transport_register(
size_t i; size_t i;
int error = 0; int error = 0;
assert(scheme); GIT_ASSERT_ARG(scheme);
assert(cb); GIT_ASSERT_ARG(cb);
if ((error = git_buf_printf(&prefix, "%s://", scheme)) < 0) if ((error = git_buf_printf(&prefix, "%s://", scheme)) < 0)
goto on_error; goto on_error;
...@@ -186,7 +186,7 @@ int git_transport_unregister(const char *scheme) ...@@ -186,7 +186,7 @@ int git_transport_unregister(const char *scheme)
size_t i; size_t i;
int error = 0; int error = 0;
assert(scheme); GIT_ASSERT_ARG(scheme);
if ((error = git_buf_printf(&prefix, "%s://", scheme)) < 0) if ((error = git_buf_printf(&prefix, "%s://", scheme)) < 0)
goto done; goto done;
......
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