From 7441dd874dd8e7127fc27125d2442b1b7e57ae88 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Mon, 13 May 2013 09:12:46 +0200 Subject: [PATCH] * src/cff/cf2font.c (cf2_getGlyphWidth): Fix uninitialized variable. Fix suggested by Vaibhav Nagarnaik . --- ChangeLog | 6 ++++++ src/cff/cf2font.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e1b5c9178..7bc1c2050 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-05-13 Werner Lemberg + + * src/cff/cf2font.c (cf2_getGlyphWidth): Fix uninitialized variable. + + Fix suggested by Vaibhav Nagarnaik . + 2013-05-13 Brian Nixon Fix Savannah bug #38970. diff --git a/src/cff/cf2font.c b/src/cff/cf2font.c index d8e061926..69642b2af 100644 --- 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;