summaryrefslogtreecommitdiff
path: root/src/client/download.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/download.c')
-rw-r--r--src/client/download.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/download.c b/src/client/download.c
index 9f5e97d..d521d01 100644
--- a/src/client/download.c
+++ b/src/client/download.c
@@ -368,13 +368,13 @@ static int inflate_udp_download(byte *data, int inlen, int outlen)
byte buffer[CHUNK];
int ret;
- z->next_in = data;
- z->avail_in = inlen;
-
// initialize stream if not done yet
if (z->state == NULL && inflateInit2(z, -MAX_WBITS) != Z_OK)
Com_Error(ERR_FATAL, "%s: inflateInit2() failed", __func__);
+ z->next_in = data;
+ z->avail_in = inlen;
+
// run inflate() until output buffer not full
do {
z->next_out = buffer;