diff options
author | David Gould <david@optimisefitness.com> | 2012-09-11 15:32:47 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-09-11 10:30:31 -0700 |
commit | bdee397d7c2345d467548ef9446a2a63b72c5449 (patch) | |
tree | 71a4db98c94c786f0edb06839cc4c9b5cab40d98 /blob.h | |
parent | run-command: optionally kill children on exit (diff) | |
download | tgif-bdee397d7c2345d467548ef9446a2a63b72c5449.tar.xz |
run-command.c: fix broken list iteration in clear_child_for_cleanup
Iterate through children_to_clean using 'next' fields but with an
extra level of indirection. This allows us to update the chain when
we remove a child and saves us managing several variables around
the loop mechanism.
Signed-off-by: David Gould <david@optimisefitness.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'blob.h')
0 files changed, 0 insertions, 0 deletions