Commit 9e46f676 by Nicolas Viennot

Return error for empty name/email

parent 53cb8757
...@@ -69,7 +69,7 @@ int git_signature_new(git_signature **sig_out, const char *name, const char *ema ...@@ -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 || if (p->name == NULL || p->email == NULL ||
p->name[0] == '\0' || p->email[0] == '\0') { p->name[0] == '\0' || p->email[0] == '\0') {
git_signature_free(p); git_signature_free(p);
return -1; return signature_error("Empty name or email");
} }
p->when.time = time; 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