Fix uninitialised struct in SVG reader

This commit is contained in:
Matthias Melcher 2022-12-30 20:49:40 +01:00
parent 2c5a5ce948
commit 96f080a212
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ static int svg_inflate(uchar *src, size_t src_length, uchar *&dst, size_t &dst_l
// initialize zlib for inflating compressed data
err = inflateInit2(&stream, 31);
if (err != Z_OK) return err;
gz_header header;
gz_header header = { };
err = inflateGetHeader(&stream, &header);
if (err != Z_OK) return err;