Commit be08ef7fd7d045a4bd0e3dfc059b32c1590b5016

Edward Thomson 2022-07-12T22:39:25

Update src/libgit2/tag.c

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/libgit2/tag.c b/src/libgit2/tag.c
index 3d8f8bf..792155a 100644
--- a/src/libgit2/tag.c
+++ b/src/libgit2/tag.c
@@ -554,6 +554,8 @@ int git_tag_name_is_valid(int *valid, const char *name)
 
 	GIT_ASSERT(valid);
 
+	*valid = 0;
+
 	if (!name || !tag_name_is_valid(name))
 		goto done;