ref: d963498fafc4f630e121cd0b929c509c2e0d37c4
parent: 8d8508e4d25eee31eef9c39bf790320bfd429d08
author: Werner Lemberg <[email protected]>
date: Tue Jun 4 16:18:57 EDT 2013
* src/cff/cf2font.c (cf2_getGlyphWidth): Initialize `advWidth'. Problem reported by Ingmar Sittl <[email protected]>.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2013-06-04 Werner Lemberg <[email protected]>
+ * src/cff/cf2font.c (cf2_getGlyphWidth): Initialize `advWidth'.
+
+ Problem reported by Ingmar Sittl <[email protected]>.
+
+2013-06-04 Werner Lemberg <[email protected]>
+
Apply fixes for cppcheck nitpicks.
http://cppcheck.sourceforge.net/
--- a/src/cff/cf2font.c
+++ b/src/cff/cf2font.c
@@ -331,7 +331,7 @@
FT_Vector advancePoint;
#endif
- CF2_Fixed advWidth;
+ CF2_Fixed advWidth = 0;
FT_Bool needWinding;