Commit 45337b07a7537e6c6bce91799ff05895f381cc21

Alexei Podtelezhnikov 2012-07-11T22:12:13

[ftstroke] Fix uninitialized return value. * src/base/ftstroke.c (FT_Stroker_New): Return FT_Err_Ok instead.

diff --git a/ChangeLog b/ChangeLog
index f1c7b8d..72f3419 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-07-11  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	[ftstroke] Fix uninitialized return value.
+
+	* src/base/ftstroke.c (FT_Stroker_New): Return FT_Err_Ok instead.
+
 2012-07-11  Werner Lemberg  <wl@gnu.org>
 
 	[smooth] Avoid memory like in case of failure.
diff --git a/src/base/ftstroke.c b/src/base/ftstroke.c
index 5399efe..f488e03 100644
--- a/src/base/ftstroke.c
+++ b/src/base/ftstroke.c
@@ -789,7 +789,6 @@
   FT_Stroker_New( FT_Library   library,
                   FT_Stroker  *astroker )
   {
-    FT_Error    error;
     FT_Memory   memory;
     FT_Stroker  stroker = NULL;
 
@@ -809,7 +808,7 @@
 
     *astroker = stroker;
 
-    return error;
+    return FT_Err_Ok;
   }