diff options
Diffstat (limited to 'archival/gzip.c')
-rw-r--r-- | archival/gzip.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/archival/gzip.c b/archival/gzip.c index 139eaacea..f9c8e4d4b 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -620,10 +620,12 @@ static int longest_match(IPos cur_match) | |||
620 | /* Skip to next match if the match length cannot increase | 620 | /* Skip to next match if the match length cannot increase |
621 | * or if the match length is less than 2: | 621 | * or if the match length is less than 2: |
622 | */ | 622 | */ |
623 | if (match[best_len] != scan_end || | 623 | if (match[best_len] != scan_end |
624 | match[best_len - 1] != scan_end1 || | 624 | || match[best_len - 1] != scan_end1 |
625 | *match != *scan || *++match != scan[1]) | 625 | || *match != *scan || *++match != scan[1] |
626 | ) { | ||
626 | continue; | 627 | continue; |
628 | } | ||
627 | 629 | ||
628 | /* The check at best_len-1 can be removed because it will be made | 630 | /* The check at best_len-1 can be removed because it will be made |
629 | * again later. (This heuristic is not always a win.) | 631 | * again later. (This heuristic is not always a win.) |