Skip to content

Commit c851650

Browse files
committed
merge-recursive:make_room_for_directories - work around dumb compilers
Some vintage of gcc does not seem to notice last_len is only used when last_file is already set to non-NULL at which point last_len is also set. Noticed on FreeBSD 8 Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4c0c181 commit c851650

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

merge-recursive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ static void make_room_for_directories_of_df_conflicts(struct merge_options *o,
365365
* below the corresponding directory.
366366
*/
367367
const char *last_file = NULL;
368-
int last_len;
368+
int last_len = 0;
369369
struct stage_data *last_e;
370370
int i;
371371

0 commit comments

Comments
 (0)