mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-15 05:21:50 +00:00
Added missing error handling path
This commit is contained in:
parent
3dbd9a0e86
commit
0beb7fe427
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user