summaryrefslogtreecommitdiffstats
path: root/src/base/ftglyph.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/ftglyph.c')
-rw-r--r--src/base/ftglyph.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/base/ftglyph.c b/src/base/ftglyph.c
index 969c5db..db0e79f 100644
--- 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;