mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-11 20:13:24 +00:00
describe: handle error code returned by git_pqueue_insert
This commit is contained in:
parent
4ebf745f06
commit
ffb1f41949
@ -582,7 +582,8 @@ static int describe(
|
||||
best = (struct possible_tag *)git_vector_get(&all_matches, 0);
|
||||
|
||||
if (gave_up_on) {
|
||||
git_pqueue_insert(&list, gave_up_on);
|
||||
if ((error = git_pqueue_insert(&list, gave_up_on)) < 0)
|
||||
goto cleanup;
|
||||
seen_commits--;
|
||||
}
|
||||
if ((error = finish_depth_computation(
|
||||
|
Loading…
Reference in New Issue
Block a user