Fix VC++ /analyze warnings
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 26 Mar 2015 18:13:53 +0000 (14:13 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 26 Mar 2015 18:13:53 +0000 (14:13 -0400)
out\debug\hb-buffer-deserialize-text.rl(47) : warning C6001: Using
uninitialized memory 'pos'.

src/hb-buffer-deserialize-text.rl

index 8856580..8a682f7 100644 (file)
@@ -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;