Flagged by cppcheck 1.64:
[src/autofit/afglobal.c:336]: (error) Possible null pointer dereference: globals
---
 src/autofit/afglobal.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/autofit/afglobal.c b/src/autofit/afglobal.c
index 7aa2e11..74e8a72 100644
--- 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;
-- 
1.7.9.2


_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to