commit d6d823b59e827b8a12735aafd4f949452cd44ded from: Stefan Sperling date: Fri Jan 31 11:25:41 2025 UTC need to hop to the done: label upon error in a nested loop commit - 2fa42ef872883a93e6207c02156de329a31dde7f commit + d6d823b59e827b8a12735aafd4f949452cd44ded blob - b26c67f13f426b203a2f060f74c7ef9b186714a9 blob + 8aa23eddbb153c7e3248e919573eabc83bbaf6b3 --- lib/pack_create_io.c +++ lib/pack_create_io.c @@ -344,7 +344,7 @@ got_pack_paint_commits(int *ncolored, struct got_objec err = got_pack_queue_commit_id(ids, &pid->id, color, repo); if (err) - break; + goto done; nqueued++; if (color == COLOR_SKIP) nskip++; blob - 4dc2ac6775d98c75c69eed9a3c97169748135cb1 blob + 84946069bb80f432199a52e1f169a0876fa81c96 --- lib/pack_create_privsep.c +++ lib/pack_create_privsep.c @@ -600,7 +600,7 @@ got_pack_paint_commits(int *ncolored, struct got_objec err = got_pack_queue_commit_id(ids, &pid->id, color, repo); if (err) - break; + goto done; nqueued++; if (color == COLOR_SKIP) nskip++;