diff --git a/ChangeLog b/ChangeLog index e7a790117..b028391a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2003-09-29 David Turner + * 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): diff --git a/src/base/ftglyph.c b/src/base/ftglyph.c index fad5a620d..9c6269084 100644 --- 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; @@ -431,6 +431,8 @@ if ( !slot ) return FT_Err_Invalid_Slot_Handle; + library = slot->library; + if ( !aglyph ) return FT_Err_Invalid_Argument;