Commit fc983542 by Edward Thomson

sysdir: use GIT_ASSERT

parent c06e7987
...@@ -45,7 +45,7 @@ static int get_passwd_home(git_buf *out, uid_t uid) ...@@ -45,7 +45,7 @@ static int get_passwd_home(git_buf *out, uid_t uid)
long buflen; long buflen;
int error; int error;
assert(out); GIT_ASSERT_ARG(out);
if ((buflen = sysconf(_SC_GETPW_R_SIZE_MAX)) == -1) if ((buflen = sysconf(_SC_GETPW_R_SIZE_MAX)) == -1)
buflen = 1024; buflen = 1024;
...@@ -204,7 +204,7 @@ static int git_sysdir_check_selector(git_sysdir_t which) ...@@ -204,7 +204,7 @@ static int git_sysdir_check_selector(git_sysdir_t which)
int git_sysdir_get(const git_buf **out, git_sysdir_t which) int git_sysdir_get(const git_buf **out, git_sysdir_t which)
{ {
assert(out); GIT_ASSERT_ARG(out);
*out = NULL; *out = NULL;
......
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