mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-07 01:48:02 +02:00
Fix cppcheck 1.64 warning.
* src/autofit/afglobal.c (af_face_globals_new): Catch NULL pointer dereference in case of error.
This commit is contained in:
parent
1a69dc7c16
commit
ed372b712f
2 changed files with 9 additions and 2 deletions
|
|
@ -1,3 +1,10 @@
|
|||
2014-03-09 Alan Coopersmith <alan.coopersmith@oracle.com>
|
||||
|
||||
Fix cppcheck 1.64 warning.
|
||||
|
||||
* src/autofit/afglobal.c (af_face_globals_new): Catch NULL pointer
|
||||
dereference in case of error.
|
||||
|
||||
2014-03-09 Sean McBride <sean@rogue-research.com>
|
||||
|
||||
* src/sfnt/ttcmap.c (tt_face_build_cmaps): Remove clang warning.
|
||||
|
|
|
|||
|
|
@ -332,8 +332,8 @@
|
|||
af_face_globals_free( globals );
|
||||
globals = NULL;
|
||||
}
|
||||
|
||||
globals->increase_x_height = AF_PROP_INCREASE_X_HEIGHT_MAX;
|
||||
else
|
||||
globals->increase_x_height = AF_PROP_INCREASE_X_HEIGHT_MAX;
|
||||
|
||||
Exit:
|
||||
*aglobals = globals;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue