commit | ee52b57121c2dcb74e0c30d98cdb3bae5b3e7cb9 | [log] [tgz] |
---|---|---|
author | Alexei Podtelezhnikov <apodtele@gmail.com> | Thu Jan 13 09:45:48 2022 -0500 |
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | Thu Jan 13 09:45:48 2022 -0500 |
tree | 6e10f89e451e7a8a9c45230c0ced5923a8035288 | |
parent | 6ee89519561aa33c63abcb24ae63920742f81316 [diff] |
* src/lzw/ftlzw.c (FT_Stream_OpenLZW): Avoid unnecessary zeroing.
diff --git a/src/lzw/ftlzw.c b/src/lzw/ftlzw.c index 3bf1729..b668a50 100644 --- a/src/lzw/ftlzw.c +++ b/src/lzw/ftlzw.c
@@ -344,7 +344,7 @@ { FT_Error error; FT_Memory memory; - FT_LZWFile zip = NULL; + FT_LZWFile zip; if ( !stream || !source ) @@ -369,7 +369,7 @@ FT_ZERO( stream ); stream->memory = memory; - if ( !FT_NEW( zip ) ) + if ( !FT_QNEW( zip ) ) { error = ft_lzw_file_init( zip, stream, source ); if ( error )