commit | 58a749ec1fc5d48a2ea305d892aa6004454bb5ea | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Sun May 25 17:36:53 2014 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Sun May 25 17:36:53 2014 +0000 |
tree | e1ddd688062ed13ef1c226f58065ccfc8ed52c54 | |
parent | 76d2c94c9542343414bacbd8a5f7ff4f62a70723 [diff] [blame] |
diff --git a/MagickCore/fx.c b/MagickCore/fx.c index 4182835..ff295b8 100644 --- a/MagickCore/fx.c +++ b/MagickCore/fx.c
@@ -1410,7 +1410,8 @@ length=GetImageListLength(fx_info->images); while (i < 0) i+=(ssize_t) length; - i%=length; + if (length != 0) + i%=length; image=GetImageFromList(fx_info->images,i); if (image == (Image *) NULL) {