Commit 5f25149e4611597c6fa5150413d7f9bd15dc7222

Carlos Martín Nieto 2011-06-28T22:04:27

sig: allow empty names Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/signature.c b/src/signature.c
index 2da595b..78cb786 100644
--- a/src/signature.c
+++ b/src/signature.c
@@ -179,8 +179,6 @@ int git_signature__parse(git_signature *sig, const char **buffer_out,
 		return git__throw(GIT_EOBJCORRUPTED, "Failed to parse signature. Can't find e-mail start");
 
 	name_length = name_end - buffer;
-	if (name_length <= 0)
-		return git__throw(GIT_EOBJCORRUPTED, "Failed to parse signature. Missing tagger name");
 
 	sig->name = git__malloc(name_length + 1);
 	if (sig->name == NULL)