* src/base/ftglyph.c (FT_Glyph_Copy): Fix initialization of

`target'.  Reported by Sean McBride.
This commit is contained in:
Werner Lemberg 2007-07-08 07:13:12 +00:00
parent 1e1b6dff54
commit b003b3e7b5
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-07-07 Werner Lemberg <wl@gnu.org>
* src/base/ftglyph.c (FT_Glyph_Copy): Fix initialization of
`target'. Reported by Sean McBride.
2007-07-06 Werner Lemberg <wl@gnu.org>
* src/pfr/pfrcmap.c: Include pfrerror.h.

View File

@ -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;