diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2020-04-05 22:12:57 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-11-27 11:09:21 +0000 |
commit | fc98354291bf7478c15fdfa0ac704361c4ece257 (patch) | |
tree | 154ffae414cea566eb14c3b048399af27cf02495 | |
parent | c06e7987c9c69f945ee1ab162d5efe4299871288 (diff) | |
download | libgit2-fc98354291bf7478c15fdfa0ac704361c4ece257.tar.gz |
sysdir: use GIT_ASSERT
-rw-r--r-- | src/sysdir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysdir.c b/src/sysdir.c index 401b4a55e..dcbd48bc3 100644 --- a/src/sysdir.c +++ b/src/sysdir.c @@ -45,7 +45,7 @@ static int get_passwd_home(git_buf *out, uid_t uid) long buflen; int error; - assert(out); + GIT_ASSERT_ARG(out); if ((buflen = sysconf(_SC_GETPW_R_SIZE_MAX)) == -1) buflen = 1024; @@ -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) { - assert(out); + GIT_ASSERT_ARG(out); *out = NULL; |