freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master da877c869: * src/psaux/psobjs.c (ps_parser_load_field


From: Werner Lemberg
Subject: [freetype2] master da877c869: * src/psaux/psobjs.c (ps_parser_load_field): Reduce `string` scope.
Date: Sat, 29 Jan 2022 22:48:25 -0500 (EST)

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

    * src/psaux/psobjs.c (ps_parser_load_field): Reduce `string` scope.
---
 src/psaux/psobjs.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c
index 4ee52871c..6871eb760 100644
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -1096,7 +1096,6 @@
     {
       FT_Byte*    q      = (FT_Byte*)objects[idx] + field->offset;
       FT_Long     val;
-      FT_String*  string = NULL;
 
 
       skip_spaces( &cur, limit );
@@ -1146,8 +1145,9 @@
       case T1_FIELD_TYPE_STRING:
       case T1_FIELD_TYPE_KEY:
         {
-          FT_Memory  memory = parser->memory;
-          FT_UInt    len    = (FT_UInt)( limit - cur );
+          FT_Memory   memory = parser->memory;
+          FT_UInt     len    = (FT_UInt)( limit - cur );
+          FT_String*  string;
 
 
           if ( cur >= limit )



reply via email to

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