]> git.eshelyaron.com Git - emacs.git/commitdiff
* xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I in inner block.
authorKen Raeburn <raeburn@raeburn.org>
Mon, 8 Jan 2001 19:35:06 +0000 (19:35 +0000)
committerKen Raeburn <raeburn@raeburn.org>
Mon, 8 Jan 2001 19:35:06 +0000 (19:35 +0000)
src/ChangeLog
src/xfns.c

index 9bb979690d403035c8b538520166ac5f2cdfcabb..b980a9524b5e1f540b04846b5d3f0b648d5fc878 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-08  Ken Raeburn  <raeburn@gnu.org>
+
+       * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
+       in inner block.
+
 2001-01-08  Gerd Moellmann  <gerd@gnu.org>
 
        * window.c (window_scroll_pixel_based): Adjust glyph matrices
index 1d277b081c8ab389bea2c2c22d8231863a99e25a..037a0baa2946bd815111761fc5d4c535675e61a4 100644 (file)
@@ -7331,6 +7331,8 @@ xpm_load (f, img)
 #ifdef ALLOC_XPM_COLORS
       img->colors = colors_in_color_table (&img->ncolors);
 #else /* not ALLOC_XPM_COLORS */
+      int i;
+
       img->ncolors = attrs.nalloc_pixels;
       img->colors = (unsigned long *) xmalloc (img->ncolors
                                               * sizeof *img->colors);