commit 7904dae25554a352199a3a292953b9d776b81bb07d4bb276b64a2dd1144a961d 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 - 10af4d61d80216f8cb8f53df1ebb704397be22f209d471e06113c672a1a63014 commit + 7904dae25554a352199a3a292953b9d776b81bb07d4bb276b64a2dd1144a961d blob - fa9a283632a8bfc22f29039a018494f33a115be254a554e4b78a69c0da6369cb blob + 26f201ecc5bf5a410862aa8dafbeb13a507fb5dc493625cf487d3a849193b50a --- 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 - 4c6d33fbd3b7257ef8921bce3c8cd79749e0aa25dc7faa63461d9e40cb8f4e70 blob + 45bcb406586828fdb27cdef4f8d84a3307f78c41be92e5beabd496436ceb441a --- 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++;