Commit ad95873b by Etienne Samson

mailmap: Undefined or garbage value returned to caller

In case there was nothing to parse in the buf, we'd return uninitialized
stack data.
parent aa8cb586
......@@ -225,7 +225,7 @@ int git_mailmap_add_entry(
static int mailmap_add_buffer(git_mailmap *mm, const char *buf, size_t len)
{
int error;
int error = 0;
git_parse_ctx ctx;
/* Scratch buffers containing the real parsed names & emails */
......
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