forked from minhngoc25a/freetype2
* src/base/ftglyph.c (FT_Glyph_Copy): Fix initialization of
`target'. Reported by Sean McBride.
This commit is contained in:
parent
1e1b6dff54
commit
b003b3e7b5
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue