8000 tag: set validity to 0 by default · Murmele/libgit2@6b2ea90 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit 6b2ea90

Browse files
committed
tag: set validity to 0 by default
`git_tag_name_is_valid` needs to set validity to 0 when it short-circuits.
1 parent 86685f8 commit 6b2ea90

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tag.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,8 @@ int git_tag_name_is_valid(int *valid, const char *name)
539539

540540
GIT_ASSERT(valid);
541541

542+
*valid = 0;
543+
542544
/*
543545
* Discourage tag name starting with dash,
544546
* https://github.com/git/git/commit/4f0accd638b8d2

0 commit comments

Comments
 (0)
0