* src/base/ftglyph.c (FT_Glyph_Copy): Always set second argument to

zero in case of error.  This fixes Savannah bug #19689.
This commit is contained in:
Werner Lemberg 2007-04-26 06:26:35 +00:00
parent fcc1f472c3
commit 45bb18fc7b
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-04-26 Werner Lemberg <wl@gnu.org>
* src/base/ftglyph.c (FT_Glyph_Copy): Always set second argument to
zero in case of error. This fixes Savannah bug #19689.
2007-04-10 Martin Horak <horakm@centrum.cz>
* src/sfnt/sfobjs.c (sfnt_load_face) [FT_CONFIG_OPTION_INCREMENTAL]:

View File

@ -4,7 +4,7 @@
/* */
/* FreeType convenience functions to handle glyphs (body). */
/* */
/* Copyright 1996-2001, 2002, 2003, 2004, 2005 by */
/* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2007 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@ -376,6 +376,8 @@
const FT_Glyph_Class* clazz;
*target = 0;
/* check arguments */
if ( !target || !source || !source->clazz )
{
@ -383,8 +385,6 @@
goto Exit;
}
*target = 0;
clazz = source->clazz;
error = ft_new_glyph( source->library, clazz, &copy );
if ( error )