X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/5e252dea4b2d310dbbb3a57337199836aff8f086..ed43d0a76dc9d0f187b0ffd32b96caa40e7c263b:/match.c diff --git a/match.c b/match.c index 8470de0c..8ddbf92b 100644 --- a/match.c +++ b/match.c @@ -188,7 +188,7 @@ static void hash_search(int f,struct sum_struct *s, sum = (s1 & 0xffff) | (s2 << 16); tag_hits++; - for (; j < s->count && targets[j].t == t; j++) { + do { unsigned int l; size_t i = targets[j].i; @@ -235,7 +235,7 @@ static void hash_search(int f,struct sum_struct *s, s2 = sum >> 16; matches++; break; - } + } while (++j < s->count && targets[j].t == t); null_tag: /* Trim off the first byte from the checksum */