summaryrefslogtreecommitdiff
path: root/src/patch_parse.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-08-02 18:43:12 -0400
committerGitHub <noreply@github.com>2016-08-02 18:43:12 -0400
commit152efee20b74ea261cf8e05410a110687e17376e (patch)
treefbeeb809f3e7fd64d38a647a14ce331a5f5aeba5 /src/patch_parse.c
parenta37624ecc7e8949ed9013af3bcb974f510720316 (diff)
parentdf87648ab87f99a7cc53bdabc8aceb01e6771dac (diff)
downloadlibgit2-152efee20b74ea261cf8e05410a110687e17376e.tar.gz
Merge pull request #3865 from libgit2/ethomson/leaks
Fix leaks, some warnings and an error
Diffstat (limited to 'src/patch_parse.c')
-rw-r--r--src/patch_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/patch_parse.c b/src/patch_parse.c
index 7f21e3f8e..ddaece62c 100644
--- a/src/patch_parse.c
+++ b/src/patch_parse.c
@@ -897,7 +897,7 @@ done:
*out_len = (path - path_start);
*out = git__strndup(path_start, *out_len);
- return (out == NULL) ? -1 : 0;
+ return (*out == NULL) ? -1 : 0;
}
static int check_filenames(git_patch_parsed *patch)