From: Elia Pinto Date: Wed, 29 Jan 2014 13:25:00 +0000 (-0800) Subject: bisect.c: reduce scope of variable X-Git-Tag: v2.0.0-rc0~158^2~6 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/4824d1b8c2d0e9e6a549c836aa6a7698fdba021b bisect.c: reduce scope of variable Signed-off-by: Elia Pinto Signed-off-by: Junio C Hamano --- diff --git a/bisect.c b/bisect.c index 1e46a4f50e..c718249a82 100644 --- a/bisect.c +++ b/bisect.c @@ -685,7 +685,6 @@ static void mark_expected_rev(char *bisect_rev_hex) static int bisect_checkout(char *bisect_rev_hex, int no_checkout) { - int res; mark_expected_rev(bisect_rev_hex); @@ -696,6 +695,7 @@ static int bisect_checkout(char *bisect_rev_hex, int no_checkout) die("update-ref --no-deref HEAD failed on %s", bisect_rev_hex); } else { + int res; res = run_command_v_opt(argv_checkout, RUN_GIT_CMD); if (res) exit(res);