[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Mar 26 11:14:56 PDT 2015


 src/hb-buffer-deserialize-text.rl |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit aee685086c8fde6f6c4590e483a177c19f222540
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Mar 26 14:13:53 2015 -0400

    Fix VC++ /analyze warnings
    
    out\debug\hb-buffer-deserialize-text.rl(47) : warning C6001: Using
    uninitialized memory 'pos'.

diff --git a/src/hb-buffer-deserialize-text.rl b/src/hb-buffer-deserialize-text.rl
index 8856580..8a682f7 100644
--- a/src/hb-buffer-deserialize-text.rl
+++ b/src/hb-buffer-deserialize-text.rl
@@ -111,8 +111,8 @@ _hb_buffer_deserialize_glyphs_text (hb_buffer_t *buffer,
 
   const char *eof = pe, *tok = NULL;
   int cs;
-  hb_glyph_info_t info;
-  hb_glyph_position_t pos;
+  hb_glyph_info_t info = {0};
+  hb_glyph_position_t pos = {0};
   %%{
     write init;
     write exec;


More information about the HarfBuzz mailing list