File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1763,6 +1763,7 @@ static void wt_shortstatus_print_tracking(struct wt_status *s)
1763
1763
const char * branch_color_remote = color (WT_STATUS_REMOTE_BRANCH , s );
1764
1764
1765
1765
const char * base ;
1766
+ char * short_base ;
1766
1767
const char * branch_name ;
1767
1768
int num_ours , num_theirs ;
1768
1769
int upstream_is_gone = 0 ;
@@ -1797,10 +1798,10 @@ static void wt_shortstatus_print_tracking(struct wt_status *s)
1797
1798
upstream_is_gone = 1 ;
1798
1799
}
1799
1800
1800
- base = shorten_unambiguous_ref (base , 0 );
1801
+ short_base = shorten_unambiguous_ref (base , 0 );
1801
1802
color_fprintf (s -> fp , header_color , "..." );
1802
- color_fprintf (s -> fp , branch_color_remote , "%s" , base );
1803
- free (( char * ) base );
1803
+ color_fprintf (s -> fp , branch_color_remote , "%s" , short_base );
1804
+ free (short_base );
1804
1805
1805
1806
if (!upstream_is_gone && !num_ours && !num_theirs )
1806
1807
goto conclude ;
You can’t perform that action at this time.
0 commit comments