]> git.eshelyaron.com Git - emacs.git/commitdiff
* xdisp.c (x_produce_glyphs): Avoid possibly-uninitialized var.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Apr 2011 19:42:09 +0000 (12:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Apr 2011 19:42:09 +0000 (12:42 -0700)
src/ChangeLog
src/xdisp.c

index f3b7c18544446ec4a147a332494cd418a3fa37cb..d1343b246ee3d18d12ef3841fae85e050fe8f91c 100644 (file)
@@ -1,5 +1,7 @@
 2011-04-16  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * xdisp.c (x_produce_glyphs): Avoid possibly-uninitialized var.
+
        * xfns.c (x_real_positions): Mark locals as initialized.
 
        * xmenu.c (xmenu_show): Don't use uninitialized vars.
index f3928f3b2095dcd7df632355a4f0a048bb36ce3c..e7e8d621a80df2c0c5d8aeab144ac63746e7e5f7 100644 (file)
@@ -22712,7 +22712,7 @@ x_produce_glyphs (struct it *it)
          int lbearing, rbearing;
          int i, width, ascent, descent;
          int left_padded = 0, right_padded = 0;
-         int c;
+         int c = 0; /* FIXME: Is 0 right here, when cmp->glyph_len == 0?  */
          XChar2b char2b;
          struct font_metrics *pcm;
          int font_not_found_p;