aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-06-08 14:44:48 -0700
committerPaul Eggert2011-06-08 14:44:48 -0700
commit20ce591249aca6b81d5d528e47d6232e8a831201 (patch)
treeea84748e8a5fac50ef3c06f74a751fd33d66afbc /src
parenta3dd1c67cdc34d56258f991342efcefd4a18ee15 (diff)
downloademacs-20ce591249aca6b81d5d528e47d6232e8a831201.tar.gz
emacs-20ce591249aca6b81d5d528e47d6232e8a831201.zip
* image.c (gif_load): Rename local to avoid shadowing.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/image.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f54d40db392..d25f9910a61 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12011-06-08 Paul Eggert <eggert@cs.ucla.edu> 12011-06-08 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * image.c (gif_load): Rename local to avoid shadowing.
4
3 * lisp.h (SAFE_ALLOCA_LISP): Check for integer overflow. 5 * lisp.h (SAFE_ALLOCA_LISP): Check for integer overflow.
4 (struct Lisp_Save_Value): Use ptrdiff_t, not int, for 'integer' member. 6 (struct Lisp_Save_Value): Use ptrdiff_t, not int, for 'integer' member.
5 * alloc.c (make_save_value): Integer argument is now of type 7 * alloc.c (make_save_value): Integer argument is now of type
diff --git a/src/image.c b/src/image.c
index cdf05c78764..31b3f01c17d 100644
--- a/src/image.c
+++ b/src/image.c
@@ -7146,12 +7146,12 @@ gif_load (struct frame *f, struct image *img)
7146 7146
7147 /* Which sub-image are we to display? */ 7147 /* Which sub-image are we to display? */
7148 { 7148 {
7149 Lisp_Object index = image_spec_value (img->spec, QCindex, NULL); 7149 Lisp_Object image_number = image_spec_value (img->spec, QCindex, NULL);
7150 idx = INTEGERP (index) ? XFASTINT (index) : 0; 7150 idx = INTEGERP (image_number) ? XFASTINT (image_number) : 0;
7151 if (idx < 0 || idx >= gif->ImageCount) 7151 if (idx < 0 || idx >= gif->ImageCount)
7152 { 7152 {
7153 image_error ("Invalid image number `%s' in image `%s'", 7153 image_error ("Invalid image number `%s' in image `%s'",
7154 index, img->spec); 7154 image_number, img->spec);
7155 fn_DGifCloseFile (gif); 7155 fn_DGifCloseFile (gif);
7156 return 0; 7156 return 0;
7157 } 7157 }