diff options
author | Lars Magne Ingebrigtsen <larsi@gnus.org> | 2013-08-18 21:18:43 +0200 |
---|---|---|
committer | Lars Magne Ingebrigtsen <larsi@gnus.org> | 2013-08-18 21:18:43 +0200 |
commit | 319a4d0389ca7e4f8f885aef7564f7991d61142f (patch) | |
tree | ca136aab1dfa5d14db15780b626d5978a8307647 /src/image.c | |
parent | f747d82e08b4d1201fa08cfee090759f7a6ef5b1 (diff) | |
download | emacs-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.c | 3 |
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) { |