mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 14:39:10 +00:00
apply: check allocation properly
This commit is contained in:
parent
531be3e8c6
commit
c065f6a1d2
@ -897,7 +897,7 @@ done:
|
|||||||
*out_len = (path - path_start);
|
*out_len = (path - path_start);
|
||||||
*out = git__strndup(path_start, *out_len);
|
*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)
|
static int check_filenames(git_patch_parsed *patch)
|
||||||
|
Loading…
Reference in New Issue
Block a user