Commit 336bc908c856c983a05d0f99ba18c56c00c9d298

Werner Lemberg 2004-04-15T16:09:31

* src/cache/ftcsbits.c (ftc_snode_load): Initialize `*asize' in case of error.

diff --git a/ChangeLog b/ChangeLog
index ad29a52..1007454 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-14  Alex Strelnikov  <ptktyrf@mail.ru>
+
+	* src/cache/ftcsbits.c (ftc_snode_load): Initialize `*asize' in case
+	of error.
+
 2004-04-14  Werner Lemberg  <wl@gnu.org>
 
 	* src/base/ftmac.c [__GNUC__]: Define OS_INLINE.
diff --git a/src/cache/ftcsbits.c b/src/cache/ftcsbits.c
index 006dd5c..6af5c7e 100644
--- a/src/cache/ftcsbits.c
+++ b/src/cache/ftcsbits.c
@@ -169,7 +169,7 @@
 
     /* ignore the errors that might have occurred --   */
     /* we mark unloaded glyphs with `sbit.buffer == 0' */
-    /* and 'width == 255', 'height == 0'               */
+    /* and `width == 255', `height == 0'               */
     /*                                                 */
     if ( error && error != FTC_Err_Out_Of_Memory )
     {
@@ -178,6 +178,8 @@
       sbit->height = 0;
       sbit->buffer = NULL;
       error        = 0;
+      if ( asize )
+        *asize = 0;
     }
 
     return error;