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 <gitster@pobox.com>
This commit is contained in:
Junio C Hamano 2010-10-21 07:34:33 -07:00
Родитель 4c0c1810c9
Коммит c8516500b1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;