emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r113940: * image.c (imagemagick_get_animation_cache)


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] trunk r113940: * image.c (imagemagick_get_animation_cache): Don't segfault when
Date: Sun, 18 Aug 2013 19:18:46 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 113940
revision-id: address@hidden
parent: address@hidden
committer: Lars Magne Ingebrigtsen <address@hidden>
branch nick: trunk
timestamp: Sun 2013-08-18 21:18:43 +0200
message:
  * image.c (imagemagick_get_animation_cache): Don't segfault when
  pruning all entries.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/image.c                    image.c-20091113204419-o5vbwnq5f7feedwu-2969
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-08-18 17:37:31 +0000
+++ b/src/ChangeLog     2013-08-18 19:18:43 +0000
@@ -1,3 +1,8 @@
+2013-08-18  Lars Magne Ingebrigtsen  <address@hidden>
+
+       * image.c (imagemagick_get_animation_cache): Don't segfault when
+       pruning all entries.
+
 2013-08-18  Ken Brown  <address@hidden>
 
        * sheap.c (STATIC_HEAP_SIZE): Adjust to current needs; use bigger

=== modified file 'src/image.c'
--- a/src/image.c       2013-08-16 15:31:04 +0000
+++ b/src/image.c       2013-08-18 19:18:43 +0000
@@ -7932,9 +7932,10 @@
 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)
     {


reply via email to

[Prev in Thread] Current Thread [Next in Thread]