summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2018-07-12 07:31:26 +0200
committerWerner Lemberg <wl@gnu.org>2018-07-12 07:31:26 +0200
commit9f15370e564eee41c83ff85bb66ead93517a641b (patch)
tree99cb81760d698d8a9688545becb480c5cf2724e4
parentb532d7ce708cb5ca9bf88abaa2eb213ddcf9babb (diff)
downloadfreetype2-9f15370e564eee41c83ff85bb66ead93517a641b.tar.gz
* src/base/ftoutln.c (FT_Outline_Get_Orientation): Init `cbox'.
Taken from patch #9667, written by Steve Langasek <vorlon@debian.org>. This fixes a build failure (most probably a bug in gcc) on ppc64el when building with -O3.
-rw-r--r--ChangeLog10
-rw-r--r--src/base/ftoutln.c2
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 772ea85c1..87f3d1795 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2018-07-12 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftoutln.c (FT_Outline_Get_Orientation): Init `cbox'.
+
+ Taken from patch #9667, written by Steve Langasek
+ <vorlon@debian.org>.
+
+ This fixes a build failure (most probably a bug in gcc) on ppc64el
+ when building with -O3.
+
2018-07-05 Werner Lemberg <wl@gnu.org>
Fix typo (#54238).
diff --git a/src/base/ftoutln.c b/src/base/ftoutln.c
index 2d2fc20ce..99edb0e0e 100644
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -1044,7 +1044,7 @@
FT_EXPORT_DEF( FT_Orientation )
FT_Outline_Get_Orientation( FT_Outline* outline )
{
- FT_BBox cbox;
+ FT_BBox cbox = { 0, 0, 0, 0 };
FT_Int xshift, yshift;
FT_Vector* points;
FT_Vector v_prev, v_cur;