Skip to content

Commit 9522de9

Browse files
committed
stash: use GIT_ASSERT
1 parent 9cf2c9d commit 9522de9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/stash.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,9 @@ int git_stash_save(
546546
git_buf msg = GIT_BUF_INIT;
547547
int error;
548548

549-
assert(out && repo && stasher);
549+
GIT_ASSERT_ARG(out);
550+
GIT_ASSERT_ARG(repo);
551+
GIT_ASSERT_ARG(stasher);
550552

551553
if ((error = git_repository__ensure_not_bare(repo, "stash save")) < 0)
552554
return error;

0 commit comments

Comments
 (0)