* src/base/ftbitmap.c (FT_Bitmap_New): Check argument.

This commit is contained in:
Werner Lemberg 2014-11-20 21:07:56 +01:00
parent b3500af717
commit 1e6e1b8390
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2014-11-20 Werner Lemberg <wl@gnu.org>
* src/base/ftbitmap.c (FT_Bitmap_New): Check argument.
2014-11-19 Werner Lemberg <wl@gnu.org>
Change some fields in `FT_Bitmap' to unsigned type.

View File

@ -33,7 +33,8 @@
FT_EXPORT_DEF( void )
FT_Bitmap_New( FT_Bitmap *abitmap )
{
*abitmap = null_bitmap;
if ( abitmap )
*abitmap = null_bitmap;
}