shithub: freetype+ttf2subf

Download patch

ref: 7441dd874dd8e7127fc27125d2442b1b7e57ae88
parent: 8d6025c8da3704fe4a68860f753ce33b67014a84
author: Werner Lemberg <[email protected]>
date: Mon May 13 05:12:46 EDT 2013

* src/cff/cf2font.c (cf2_getGlyphWidth): Fix uninitialized variable.

Fix suggested by Vaibhav Nagarnaik <[email protected]>.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-05-13  Werner Lemberg  <[email protected]>
+
+	* src/cff/cf2font.c (cf2_getGlyphWidth): Fix uninitialized variable.
+
+	Fix suggested by Vaibhav Nagarnaik <[email protected]>.
+
 2013-05-13  Brian Nixon  <[email protected]>
 
 	Fix Savannah bug #38970.
--- a/src/cff/cf2font.c
+++ b/src/cff/cf2font.c
@@ -387,11 +387,11 @@
     /* finish storing client outline */
     cf2_outline_close( &font->outline );
 
+  exit:
     /* FreeType just wants the advance width; there is no translation */
     *glyphWidth = advWidth;
 
     /* free resources and collect errors from objects we've used */
-  exit:
     cf2_setError( &font->error, lastError );
 
     return font->error;