diff options
author | Jacques Germishuys <jacquesg@striata.com> | 2014-12-24 11:44:17 +0200 |
---|---|---|
committer | Jacques Germishuys <jacquesg@striata.com> | 2014-12-30 12:33:40 +0200 |
commit | 0beb7fe42726671304161a1aecee4924617b7c96 (patch) | |
tree | 6082bfa1de8b09be790214912f0e795be3a91819 /src/diff.c | |
parent | 3dbd9a0e86f30e1192fd76ce98c9fbce1801a1d9 (diff) | |
download | libgit2-0beb7fe42726671304161a1aecee4924617b7c96.tar.gz |
Added missing error handling path
Diffstat (limited to 'src/diff.c')
-rw-r--r-- | src/diff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/diff.c b/src/diff.c index 1f3ee63be..e23d3891f 100644 --- a/src/diff.c +++ b/src/diff.c @@ -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)); |