freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] * src/lzw/ftlzw.c (FT_Stream_OpenLZW):


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] * src/lzw/ftlzw.c (FT_Stream_OpenLZW): Avoid unnecessary zeroing.
Date: Thu, 13 Jan 2022 15:38:07 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

1 changed file:

Changes:

  • src/lzw/ftlzw.c
    ... ... @@ -344,7 +344,7 @@
    344 344
       {
    
    345 345
         FT_Error    error;
    
    346 346
         FT_Memory   memory;
    
    347
    -    FT_LZWFile  zip = NULL;
    
    347
    +    FT_LZWFile  zip;
    
    348 348
     
    
    349 349
     
    
    350 350
         if ( !stream || !source )
    
    ... ... @@ -369,7 +369,7 @@
    369 369
         FT_ZERO( stream );
    
    370 370
         stream->memory = memory;
    
    371 371
     
    
    372
    -    if ( !FT_NEW( zip ) )
    
    372
    +    if ( !FT_QNEW( zip ) )
    
    373 373
         {
    
    374 374
           error = ft_lzw_file_init( zip, stream, source );
    
    375 375
           if ( error )
    


  • reply via email to

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