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:
Alan Coopersmith 2014-03-09 06:14:12 +01:00 committed by Werner Lemberg
parent 1a69dc7c16
commit ed372b712f
2 changed files with 9 additions and 2 deletions

View File

@ -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.

View File

@ -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;