Skip to content

Commit c065f6a

Browse files
author
Edward Thomson
committed
apply: check allocation properly
1 parent 531be3e commit c065f6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patch_parse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ static int check_prefix(
897897
*out_len = (path - path_start);
898898
*out = git__strndup(path_start, *out_len);
899899

900-
return (out == NULL) ? -1 : 0;
900+
return (*out == NULL) ? -1 : 0;
901901
}
902902

903903
static int check_filenames(git_patch_parsed *patch)

0 commit comments

Comments
 (0)