ref: ed372b712fa698da24c21746135f2c2c8d738c6e
parent: 1a69dc7c16e1708dcdfe2e342bc0d9c7735c1c3a
author: Alan Coopersmith <[email protected]>
date: Sun Mar 9 01:14:12 EST 2014
Fix cppcheck 1.64 warning. * src/autofit/afglobal.c (af_face_globals_new): Catch NULL pointer dereference in case of error.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-03-09 Alan Coopersmith <[email protected]>
+
+ 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 <[email protected]>
* src/sfnt/ttcmap.c (tt_face_build_cmaps): Remove clang warning.
--- a/src/autofit/afglobal.c
+++ b/src/autofit/afglobal.c
@@ -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;