Coverity: UNINIT: CID 395
authorNelson Ferreira <nelson.ferreira@ieee.org>
Fri, 20 Jan 2012 03:10:06 +0000 (22:10 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Fri, 20 Jan 2012 03:10:06 +0000 (22:10 -0500)
* src/extents.c (extent_fragment_update): Make sure the glyph_bloc
is initialized.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/extents.c

index 226a17c..92d1c8b 100644 (file)
@@ -2932,6 +2932,8 @@ extent_fragment_update(struct window * w, struct extent_fragment * ef,
                        if (!NILP(glyph)) {
                                struct glyph_block gb;
 
+                               memset(&gb,0,sizeof(gb));
+
                                gb.glyph = glyph;
                                gb.active = 0; /* BEGIN_GLYPH */
                                gb.width = 0;