From f47a9ec42bfe64c316473c64c847922bbbce2063 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 8 Jan 2001 19:35:06 +0000 Subject: [PATCH] * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I in inner block. --- src/ChangeLog | 5 +++++ src/xfns.c | 2 ++ 2 files changed, 7 insertions(+) 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); -- 2.39.2