freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] * src/psaux/psobjs.c (ps_parser_load_fi


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] * src/psaux/psobjs.c (ps_parser_load_field): Reduce `string` scope.
Date: Sun, 30 Jan 2022 03:48:16 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

1 changed file:

Changes:

  • src/psaux/psobjs.c
    ... ... @@ -1096,7 +1096,6 @@
    1096 1096
         {
    
    1097 1097
           FT_Byte*    q      = (FT_Byte*)objects[idx] + field->offset;
    
    1098 1098
           FT_Long     val;
    
    1099
    -      FT_String*  string = NULL;
    
    1100 1099
     
    
    1101 1100
     
    
    1102 1101
           skip_spaces( &cur, limit );
    
    ... ... @@ -1146,8 +1145,9 @@
    1146 1145
           case T1_FIELD_TYPE_STRING:
    
    1147 1146
           case T1_FIELD_TYPE_KEY:
    
    1148 1147
             {
    
    1149
    -          FT_Memory  memory = parser->memory;
    
    1150
    -          FT_UInt    len    = (FT_UInt)( limit - cur );
    
    1148
    +          FT_Memory   memory = parser->memory;
    
    1149
    +          FT_UInt     len    = (FT_UInt)( limit - cur );
    
    1150
    +          FT_String*  string;
    
    1151 1151
     
    
    1152 1152
     
    
    1153 1153
               if ( cur >= limit )
    


  • reply via email to

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