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
@ -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…
Reference in New Issue
Block a user