mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-25 23:57:17 +00:00
revwalk: use GITERR_CHECK_ALLOC_BUF
This commit is contained in:
parent
6e2a37556d
commit
c5bd70d138
@ -223,8 +223,7 @@ static int push_glob(git_revwalk *walk, const char *glob, int hide)
|
||||
git_buf_joinpath(&buf, GIT_REFS_DIR, glob);
|
||||
else
|
||||
git_buf_puts(&buf, glob);
|
||||
if (git_buf_oom(&buf))
|
||||
return -1;
|
||||
GITERR_CHECK_ALLOC_BUF(&buf);
|
||||
|
||||
/* If no '?', '*' or '[' exist, we append '/ *' to the glob */
|
||||
wildcard = strcspn(glob, "?*[");
|
||||
|
Loading…
Reference in New Issue
Block a user