shithub: freetype+ttf2subf

Download patch

ref: c4ec9731608c0001e41fb53f59e04ec9a5eeabf1
parent: b72d8a85212e1dc2dc103c28e19a4f4a2d71767e
author: David Turner <[email protected]>
date: Mon Sep 29 16:35:34 EDT 2003

* src/base/ftglyph.c (FT_Get_Glyph): fixing small bug, thanks
        to Henry Maddocks for spotting this

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2003-09-29  David Turner  <[email protected]>
 
+        * src/base/ftglyph.c (FT_Get_Glyph): fixing small bug, thanks
+        to Henry Maddocks for spotting this
+
         * include/freetype/internal/services/svpsname.h (added),
         include/freetype/internal/psnames.h (removed),
         include/freetype/internal/internal.h (FT_SERVICE_POSTSCRIPT_NAMES):
--- a/src/base/ftglyph.c
+++ b/src/base/ftglyph.c
@@ -421,7 +421,7 @@
   FT_Get_Glyph( FT_GlyphSlot  slot,
                 FT_Glyph     *aglyph )
   {
-    FT_Library  library = slot->library;
+    FT_Library  library;
     FT_Error    error;
     FT_Glyph    glyph;
 
@@ -430,6 +430,8 @@
 
     if ( !slot )
       return FT_Err_Invalid_Slot_Handle;
+
+    library = slot->library;
 
     if ( !aglyph )
       return FT_Err_Invalid_Argument;