diff --git a/src/image.c b/src/image.c index 00f2a035c44..2b415fb9b97 100644 --- a/src/image.c +++ b/src/image.c @@ -7938,11 +7938,11 @@ imagemagick_get_animation_cache (MagickWand *wand) return animation_cache; } - while (strcmp(signature, cache->signature) && + while (strcmp (signature, cache->signature) && cache->next) cache = cache->next; - if (strcmp(signature, cache->signature)) + if (strcmp (signature, cache->signature)) { cache->next = imagemagick_create_cache (signature); DestroyString (signature);