From: Junio C Hamano Date: Thu, 21 Oct 2010 14:34:33 +0000 (-0700) Subject: merge-recursive:make_room_for_directories - work around dumb compilers X-Git-Tag: v1.7.4-rc0~101^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c8516500b1ee6025466a207cd86dc30421c3b6e6;p=git.git 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 --- diff --git a/merge-recursive.c b/merge-recursive.c index bae98845c..231e5cbd7 100644 --- a/merge-recursive.c +++ b/merge-recursive.c @@ -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;