]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[nit] Fix buggy indentation
authorNick Terrell <terrelln@fb.com>
Fri, 8 Oct 2021 18:13:11 +0000 (11:13 -0700)
committerNick Terrell <terrelln@fb.com>
Mon, 11 Oct 2021 22:43:33 +0000 (15:43 -0700)
The bug was reported by Dan Carpenter and found by Smatch static
checker.

https://lore.kernel.org/all/20211008063704.GA5370@kili/

lib/compress/zstd_lazy.c

index 75745a79be771e7d94825c6b2f8bd91f3cd6c3bc..c5fe6dd47a7cd028e6c14225b0fa0b40940393a5 100644 (file)
@@ -1264,7 +1264,7 @@ size_t ZSTD_compressBlock_lazy_extDict_generic(
                 matchLength = ml2, start = ip, offset=offsetFound;
         }
 
-         if (matchLength < 4) {
+        if (matchLength < 4) {
             ip += ((ip-anchor) >> kSearchStrength) + 1;   /* jump faster over incompressible sections */
             continue;
         }