apply: check allocation properly

This commit is contained in:
Edward Thomson 2016-07-14 23:04:47 -04:00
parent 531be3e8c6
commit c065f6a1d2

View File

@ -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)