Commit 2b63dbfb by Vicent Martí

Merge pull request #1482 from nviennot/error-name-email

Return error for empty name/email
parents f90391ea 9e46f676
......@@ -69,7 +69,7 @@ int git_signature_new(git_signature **sig_out, const char *name, const char *ema
if (p->name == NULL || p->email == NULL ||
p->name[0] == '\0' || p->email[0] == '\0') {
git_signature_free(p);
return -1;
return signature_error("Empty name or email");
}
p->when.time = time;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment