diff options
author | 2008-02-23 23:42:23 +0000 | |
---|---|---|
committer | 2008-02-23 23:42:23 +0000 | |
commit | cbd9d31ab7c6b7bed2e06c01d29b53b04997ee2c (patch) | |
tree | 4f0be7e1ee7b585d1ac7078a2a42094c7be85805 /usr.bin/cvs/diff3.c | |
parent | More device families, from Dallas datasheets. (diff) | |
download | wireguard-openbsd-cbd9d31ab7c6b7bed2e06c01d29b53b04997ee2c.tar.xz wireguard-openbsd-cbd9d31ab7c6b7bed2e06c01d29b53b04997ee2c.zip |
reset overlapcnt at each cvs_merge_file() call so that files that
are being merged that have no conflicts will not report the previous
conflicts that might have been found.
Diffstat (limited to 'usr.bin/cvs/diff3.c')
-rw-r--r-- | usr.bin/cvs/diff3.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/diff3.c b/usr.bin/cvs/diff3.c index fa6a440fc45..4bcfb654689 100644 --- a/usr.bin/cvs/diff3.c +++ b/usr.bin/cvs/diff3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff3.c,v 1.40 2008/02/11 20:33:11 tobias Exp $ */ +/* $OpenBSD: diff3.c,v 1.41 2008/02/23 23:42:23 joris Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. @@ -72,7 +72,7 @@ static const char copyright[] = #ifndef lint static const char rcsid[] = - "$OpenBSD: diff3.c,v 1.40 2008/02/11 20:33:11 tobias Exp $"; + "$OpenBSD: diff3.c,v 1.41 2008/02/23 23:42:23 joris Exp $"; #endif /* not lint */ #include <ctype.h> @@ -172,6 +172,7 @@ cvs_merge_file(struct cvs_file *cf, int verbose) struct cvs_line *lp; struct cvs_lines *dlines, *plines; + overlapcnt = 0; b1 = b2 = b3 = d1 = d2 = diffb = NULL; rcsnum_tostr(cf->file_ent->ce_rev, r1, sizeof(r1)); rcsnum_tostr(cf->file_rcsrev, r2, sizeof(r2)); |