summaryrefslogtreecommitdiff
path: root/src/patch_parse.c
diff options
context:
space:
mode:
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)