Commit 7a15213e3bdf9f8d459a34d0f16999ef4c6e2a85

Edward Thomson 2021-11-16T23:42:09

Merge pull request #6119 from libgit2/ethomson/tag_valid tag: set validity to 0 by default

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/tag.c b/src/tag.c
index 7a15514..837658a 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -539,6 +539,8 @@ int git_tag_name_is_valid(int *valid, const char *name)
 
 	GIT_ASSERT(valid);
 
+	*valid = 0;
+
 	/*
 	 * Discourage tag name starting with dash,
 	 * https://github.com/git/git/commit/4f0accd638b8d2