projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ab02be4
)
fix loop with unreachable exit condition
author
ihsinme
<ihsinme@gmail.com>
Wed, 24 Feb 2021 21:37:14 +0000
(
00:37
+0300)
committer
GitHub
<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
patch
|
blob
|
blame
|
history
diff --git
a/server.c
b/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)