]> git.ipfire.org Git - thirdparty/git.git/commit - config.c
git_config_parse_parameter: refactor cleanup code
authorJeff King <peff@peff.net>
Wed, 18 May 2016 22:39:49 +0000 (18:39 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 May 2016 20:21:59 +0000 (13:21 -0700)
commita77d6db69b2cbd16e98763f33ceaa76ff5ca2c54
tree494745fc3aca2872350c56dab1ffa67c390065e9
parentc72ee44bf4bc7549ee8710037ae8adfae6d8efc2
git_config_parse_parameter: refactor cleanup code

We have several exits from the function, each of which has
to do some cleanup. Let's consolidate these in an "out"
label we can jump to. This doesn't save us much now, but it
will help as we add more things that need cleanup.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c