From: Elia Pinto Date: Wed, 29 Jan 2014 13:33:15 GMT Subject: [PATCH 3/3] builtin/blame.c: reduce scope of variables Message-ID: <1391002395-8665-1-git-send-email-gitter.spiros@gmail.com> In-Reply-To: Signed-off-by: Elia Pinto --- builtin/blame.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/blame.c b/builtin/blame.c index e44a6bb..967a7c6 100644 --- a/builtin/blame.c +++ b/builtin/blame.c @@ -1580,14 +1580,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); -- 1.7.10.4