]> git.eshelyaron.com Git - emacs.git/commitdiff
* xdisp.c (x_produce_glyphs): Mark var as initialized (Bug#8512).
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Apr 2011 22:48:31 +0000 (15:48 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Apr 2011 22:48:31 +0000 (15:48 -0700)
src/ChangeLog
src/xdisp.c

index 52a48a87e80e8e370ca525cd612f1f5b05a4dda5..ded7da730fe21347f5789405b26100eace49d033 100644 (file)
@@ -35,8 +35,7 @@
 
        * xfns.c (Fx_file_dialog): Rename local to avoid shadowing.
 
-       * xdisp.c (x_produce_glyphs): Avoid possibly-uninitialized
-       var (Bug#8512).
+       * xdisp.c (x_produce_glyphs): Mark var as initialized (Bug#8512).
 
        * xfns.c (x_real_positions): Mark locals as initialized.
 
index e7e8d621a80df2c0c5d8aeab144ac63746e7e5f7..3c75a63f4e0b81bd834c00549e053920220b6410 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 = 0; /* FIXME: Is 0 right here, when cmp->glyph_len == 0?  */
+         int c IF_LINT (= 0); /* cmp->glyph_len can't be zero; see Bug#8512 */
          XChar2b char2b;
          struct font_metrics *pcm;
          int font_not_found_p;