From: Ken Raeburn Date: Mon, 8 Jan 2001 19:35:06 +0000 (+0000) Subject: * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I in inner block. X-Git-Tag: emacs-pretest-21.0.95~42 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f47a9ec42bfe64c316473c64c847922bbbce2063;p=emacs.git * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I in inner block. --- diff --git a/src/ChangeLog b/src/ChangeLog index 9bb979690d4..b980a9524b5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-01-08 Ken Raeburn + + * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I + in inner block. + 2001-01-08 Gerd Moellmann * window.c (window_scroll_pixel_based): Adjust glyph matrices diff --git a/src/xfns.c b/src/xfns.c index 1d277b081c8..037a0baa294 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -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);