Skip to content

Commit ac39b27

Browse files
devzero2000gitster
authored andcommitted
builtin/blame.c: reduce scope of variables
Signed-off-by: Elia Pinto <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e36f3a8 commit ac39b27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builtin/blame.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,14 +1581,14 @@ static const char *format_time(unsigned long time, const char *tz_str,
15811581
int show_raw_time)
15821582
{
15831583
static char time_buf[128];
1584-
const char *time_str;
1585-
int time_len;
1586-
int tz;
15871584

15881585
if (show_raw_time) {
15891586
snprintf(time_buf, sizeof(time_buf), "%lu %s", time, tz_str);
15901587
}
15911588
else {
1589+
const char *time_str;
1590+
int time_len;
1591+
int tz;
15921592
tz = atoi(tz_str);
15931593
time_str = show_date(time, tz, blame_date_mode);
15941594
time_len = strlen(time_str);

0 commit comments

Comments
 (0)