summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tag.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tag.c b/src/tag.c
index 7a155147d..837658a19 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