ref: b003b3e7b567a48f226080149971f2fbb33dc710
parent: 1e1b6dff54ffcffebb63c7800b204c1265510af7
author: Werner Lemberg <[email protected]>
date: Sun Jul 8 03:13:12 EDT 2007
* src/base/ftglyph.c (FT_Glyph_Copy): Fix initialization of `target'. Reported by Sean McBride.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-07 Werner Lemberg <[email protected]>
+
+ * src/base/ftglyph.c (FT_Glyph_Copy): Fix initialization of
+ `target'. Reported by Sean McBride.
+
2007-07-06 Werner Lemberg <[email protected]>
* src/pfr/pfrcmap.c: Include pfrerror.h.
--- a/src/base/ftglyph.c
+++ b/src/base/ftglyph.c
@@ -376,10 +376,16 @@
const FT_Glyph_Class* clazz;
+ /* check arguments */
+ if ( !target )
+ {
+ error = FT_Err_Invalid_Argument;
+ goto Exit;
+ }
+
*target = 0;
- /* check arguments */
- if ( !target || !source || !source->clazz )
+ if ( !source || !source->clazz )
{
error = FT_Err_Invalid_Argument;
goto Exit;