1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

Corrected a loop if the file size is 0, Daniel.

This commit is contained in:
Daniel Veillard
1998-09-22 00:24:21 +00:00
parent 1c34729c67
commit 70120ffb43
2 changed files with 5 additions and 1 deletions

View File

@ -3059,7 +3059,7 @@ retry_bigger:
}
#ifdef HAVE_ZLIB_H
gzclose(input);
if (res >= 20 * buf.st_size) {
if (res >= 20 * buf.st_size + 20) {
free(buffer);
buf.st_size *= 2;
goto retry_bigger;