mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-03 19:59:33 +00:00
sig: allow empty names
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
This commit is contained in:
parent
0f489fb211
commit
5f25149e46
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user