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)