freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master ee52b5712: * src/lzw/ftlzw.c (FT_Stream_OpenLZW): Avo


From: Werner Lemberg
Subject: [freetype2] master ee52b5712: * src/lzw/ftlzw.c (FT_Stream_OpenLZW): Avoid unnecessary zeroing.
Date: Thu, 13 Jan 2022 10:38:15 -0500 (EST)

branch: master
commit ee52b57121c2dcb74e0c30d98cdb3bae5b3e7cb9
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * src/lzw/ftlzw.c (FT_Stream_OpenLZW): Avoid unnecessary zeroing.
---
 src/lzw/ftlzw.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lzw/ftlzw.c b/src/lzw/ftlzw.c
index 3bf172909..b668a50a4 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 )



reply via email to

[Prev in Thread] Current Thread [Next in Thread]