describe: handle error code returned by git_pqueue_insert

This commit is contained in:
Patrick Steinhardt 2016-03-01 14:24:09 +01:00 committed by Edward Thomson
parent 4ebf745f06
commit ffb1f41949

View File

@ -582,7 +582,8 @@ static int describe(
best = (struct possible_tag *)git_vector_get(&all_matches, 0); best = (struct possible_tag *)git_vector_get(&all_matches, 0);
if (gave_up_on) { 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--; seen_commits--;
} }
if ((error = finish_depth_computation( if ((error = finish_depth_computation(