diff options
author | Edward Thomson <ethomson@github.com> | 2016-07-14 23:04:47 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2016-07-24 15:49:19 -0400 |
commit | c065f6a1d2b9c7c64646a6c0e65abbb3ca0dc4b1 (patch) | |
tree | 77211e24fb70ac409ecb1b26a51e98c48f87bed8 | |
parent | 531be3e8c6e8ec08db9798e7837a5abf933cc650 (diff) | |
download | libgit2-c065f6a1d2b9c7c64646a6c0e65abbb3ca0dc4b1.tar.gz |
apply: check allocation properly
-rw-r--r-- | src/patch_parse.c | 2 |
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) |