1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-25 01:05:37 +00:00

1034: Initialize l in deflate_read to shut up GCC

Avoid this warning:

      [CC]   src/encoding/deflate.o
cc1: warnings being treated as errors
/home/Kalle/src/elinks-0.12/src/encoding/deflate.c: In function ‘deflate_read’:
/home/Kalle/src/elinks-0.12/src/encoding/deflate.c:96: warning: ‘l’ may be used uninitialized in this function
This commit is contained in:
Kalle Olavi Niemitalo 2008-07-20 14:32:56 +03:00 committed by Kalle Olavi Niemitalo
parent e213a91bad
commit b9d48ad7e8

View File

@ -93,7 +93,7 @@ deflate_read(struct stream_encoded *stream, unsigned char *buf, int len)
{
struct deflate_enc_data *data = (struct deflate_enc_data *) stream->data;
int err = 0;
int l;
int l = 0;
if (!data) return -1;