comparison src/xfns.c @ 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 e6fe439553cf
children 3de883052d49
comparison
equal deleted inserted replaced
35145:85b1d35e08bd 35146:9b49ba6631c5
7329 if (rc == XpmSuccess) 7329 if (rc == XpmSuccess)
7330 { 7330 {
7331 #ifdef ALLOC_XPM_COLORS 7331 #ifdef ALLOC_XPM_COLORS
7332 img->colors = colors_in_color_table (&img->ncolors); 7332 img->colors = colors_in_color_table (&img->ncolors);
7333 #else /* not ALLOC_XPM_COLORS */ 7333 #else /* not ALLOC_XPM_COLORS */
7334 int i;
7335
7334 img->ncolors = attrs.nalloc_pixels; 7336 img->ncolors = attrs.nalloc_pixels;
7335 img->colors = (unsigned long *) xmalloc (img->ncolors 7337 img->colors = (unsigned long *) xmalloc (img->ncolors
7336 * sizeof *img->colors); 7338 * sizeof *img->colors);
7337 for (i = 0; i < attrs.nalloc_pixels; ++i) 7339 for (i = 0; i < attrs.nalloc_pixels; ++i)
7338 { 7340 {