mailmap: Undefined or garbage value returned to caller In case there was nothing to parse in the buf, we'd return uninitialized stack data.
diff --git a/src/mailmap.c b/src/mailmap.c
index fe4d452..1f725b3 100644
--- a/src/mailmap.c
+++ b/src/mailmap.c
@@ -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 */