summaryrefslogtreecommitdiff
path: root/src/base/ftmac.c
diff options
context:
space:
mode:
authorSuzuki, Toshiya (鈴木俊哉) <mpsuzuki@hiroshima-u.ac.jp>2008-05-20 07:57:53 +0000
committerSuzuki, Toshiya (鈴木俊哉) <mpsuzuki@hiroshima-u.ac.jp>2008-05-20 07:57:53 +0000
commit062f88a4f3c89603fe4bca8cc4e969ea4e9af3a3 (patch)
tree5b4022ecba76109ed1915d49f369db8810a36b89 /src/base/ftmac.c
parent5e8a36867342aca0d74374a2c193cce8a7c78e25 (diff)
* src/base/ftmac.c (FT_New_Face_From_Suitcase): Check if valid aface is returned by FT_New_Face_From_FOND()
Diffstat (limited to 'src/base/ftmac.c')
-rw-r--r--src/base/ftmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/ftmac.c b/src/base/ftmac.c
index 5b265905..7f059076 100644
--- a/src/base/ftmac.c
+++ b/src/base/ftmac.c
@@ -899,7 +899,7 @@ typedef short ResourceIndex;
}
CloseResFile( res_ref );
- if ( FT_Err_Ok == error && NULL != aface )
+ if ( FT_Err_Ok == error && NULL != aface && NULL != *aface )
(*aface)->num_faces = num_faces_in_res;
return error;
}