]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed wrong assert
authorYann Collet <yann.collet.73@gmail.com>
Sun, 4 Feb 2024 01:48:29 +0000 (17:48 -0800)
committerYann Collet <yann.collet.73@gmail.com>
Sun, 4 Feb 2024 01:48:29 +0000 (17:48 -0800)
lib/compress/zstd_opt.c

index bbf367b24dec2d0ad01ec8d883ba9654d1c84853..bcebfaa3559eaadc9f765d143aac1f312e16e6fe 100644 (file)
@@ -1325,7 +1325,6 @@ _shortestPath:   /* cur, last_pos, best_mlen, best_off have to be set */
         assert(opt[0].mlen == 0);
         assert(last_pos >= lastStretch.mlen);
         assert(cur == last_pos - lastStretch.mlen);
-        assert(lastStretch.rep[0] != 0);
 
         if (lastStretch.mlen==0) {
             /* no solution : all matches have been converted into literals */