Commit 0beb7fe4 by Jacques Germishuys

Added missing error handling path

parent 3dbd9a0e
......@@ -1555,6 +1555,7 @@ int git_diff_format_email(
if ((offset = (loc - opts->summary)) == 0) {
giterr_set(GITERR_INVALID, "summary is empty");
error = -1;
goto on_error;
}
summary = git__calloc(offset + 1, sizeof(char));
......
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