diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2020-04-05 22:06:25 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-11-27 11:09:21 +0000 |
commit | 9522de900f38119c005cb53a77fe61fd0139857e (patch) | |
tree | a134449077e1fb129f246a8714537ae445ce8a6c | |
parent | 9cf2c9dc1e08f77bb74bfc1bc8feaabcde91d20e (diff) | |
download | libgit2-9522de900f38119c005cb53a77fe61fd0139857e.tar.gz |
stash: use GIT_ASSERT
-rw-r--r-- | src/stash.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stash.c b/src/stash.c index 0d5dc4351..8ee127322 100644 --- a/src/stash.c +++ b/src/stash.c @@ -546,7 +546,9 @@ int git_stash_save( git_buf msg = GIT_BUF_INIT; int error; - assert(out && repo && stasher); + GIT_ASSERT_ARG(out); + GIT_ASSERT_ARG(repo); + GIT_ASSERT_ARG(stasher); if ((error = git_repository__ensure_not_bare(repo, "stash save")) < 0) return error; |