changeset 35146:9b49ba6631c5

* xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I in inner block.
author Ken Raeburn <raeburn@raeburn.org>
date Mon, 08 Jan 2001 19:35:06 +0000
parents 85b1d35e08bd
children bb3753ae88ae
files src/ChangeLog src/xfns.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon Jan 08 19:33:02 2001 +0000
+++ b/src/ChangeLog	Mon Jan 08 19:35:06 2001 +0000
@@ -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
--- a/src/xfns.c	Mon Jan 08 19:33:02 2001 +0000
+++ b/src/xfns.c	Mon Jan 08 19:35:06 2001 +0000
@@ -7331,6 +7331,8 @@
 #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);