From: Elia Pinto Date: Wed, 29 Jan 2014 13:33:15 +0000 (-0800) Subject: builtin/blame.c: reduce scope of variables X-Git-Tag: v2.0.0-rc0~158^2~4 X-Git-Url: http://git.bitbasher.net/?a=commitdiff_plain;h=ac39b27786856c3d622d3ad2c1423ce1606ec7d4;p=git.git builtin/blame.c: reduce scope of variables Signed-off-by: Elia Pinto Signed-off-by: Junio C Hamano --- diff --git a/builtin/blame.c b/builtin/blame.c index 1407ae7eb2..862c0a23d1 100644 --- a/builtin/blame.c +++ b/builtin/blame.c @@ -1581,14 +1581,14 @@ static const char *format_time(unsigned long time, const char *tz_str, int show_raw_time) { static char time_buf[128]; - const char *time_str; - int time_len; - int tz; if (show_raw_time) { snprintf(time_buf, sizeof(time_buf), "%lu %s", time, tz_str); } else { + const char *time_str; + int time_len; + int tz; tz = atoi(tz_str); time_str = show_date(time, tz, blame_date_mode); time_len = strlen(time_str);