summaryrefslogtreecommitdiff
path: root/src/image.c
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <larsi@gnus.org>2013-08-18 21:18:43 +0200
committerLars Magne Ingebrigtsen <larsi@gnus.org>2013-08-18 21:18:43 +0200
commit319a4d0389ca7e4f8f885aef7564f7991d61142f (patch)
treeca136aab1dfa5d14db15780b626d5978a8307647 /src/image.c
parentf747d82e08b4d1201fa08cfee090759f7a6ef5b1 (diff)
downloademacs-319a4d0389ca7e4f8f885aef7564f7991d61142f.tar.gz
* image.c (imagemagick_get_animation_cache): Don't segfault when
pruning all entries.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index 198d5545c96..1452e8659b5 100644
--- a/src/image.c
+++ b/src/image.c
@@ -7932,9 +7932,10 @@ struct animation_cache *
imagemagick_get_animation_cache (MagickWand *wand)
{
char *signature = xstrdup (MagickGetImageSignature (wand));
- struct animation_cache *cache = animation_cache;
+ struct animation_cache *cache;
imagemagick_prune_animation_cache ();
+ cache = animation_cache;
if (! cache)
{