Skip to content

Commit

Permalink
merge-recursive:make_room_for_directories - work around dumb compilers
Browse files Browse the repository at this point in the history
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 <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Oct 21, 2010
1 parent 4c0c181 commit c851650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merge-recursive.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ static void make_room_for_directories_of_df_conflicts(struct merge_options *o,
* below the corresponding directory.
*/
const char *last_file = NULL;
int last_len;
int last_len = 0;
struct stage_data *last_e;
int i;

Expand Down

0 comments on commit c851650

Please sign in to comment.