fix loop with unreachable exit condition
authorihsinme <ihsinme@gmail.com>
Wed, 24 Feb 2021 21:37:14 +0000 (00:37 +0300)
committerGitHub <noreply@github.com>
Wed, 24 Feb 2021 21:37:14 +0000 (00:37 +0300)
the essence of the error lies in a possible hit in the eternal cycle while, when exiting the higher cycle by means of break.

Signed-off-by: Sergey Valentey <ihsinme@gmail.com>
server.c

index 1b65297ec25feb166e3f39e6b01b7c081a96fa42..8daefbabfeae93f6c260c0b74eec6fedc7bbd973 100644 (file)
--- a/server.c
+++ b/server.c
@@ -1909,7 +1909,7 @@ static int fio_append_iolog_gz(struct sk_entry *first, struct io_log *log)
                        break;
                }
                flist_add_tail(&entry->list, &first->next);
                        break;
                }
                flist_add_tail(&entry->list, &first->next);
-       } while (ret != Z_STREAM_END);
+       }
 
        ret = deflateEnd(&stream);
        if (ret == Z_OK)
 
        ret = deflateEnd(&stream);
        if (ret == Z_OK)