From: cristy Date: Mon, 24 May 2010 18:23:54 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~9399 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84d9b5596c0900609dea18795861e2b0936b21c6;p=imagemagick --- diff --git a/magick/morphology.c b/magick/morphology.c index e7427a5f2..cdbd32bbb 100644 --- a/magick/morphology.c +++ b/magick/morphology.c @@ -1863,19 +1863,19 @@ static MagickBooleanType SameKernelInfo(const KernelInfo *kernel1, static void ExpandKernelInfo(KernelInfo *kernel, const double angle) { KernelInfo - *new, + *clone, *last; last = kernel; while(1) { - new = CloneKernelInfo(last); - RotateKernelInfo(new, angle); - if ( SameKernelInfo(kernel, new) == MagickTrue ) + clone = CloneKernelInfo(last); + RotateKernelInfo(clone, angle); + if ( SameKernelInfo(kernel, clone) == MagickTrue ) break; - last->next = new; - last = new; + last->next = clone; + last = clone; } - new = DestroyKernelInfo(new); /* This was the same as the first - junk */ + clone = DestroyKernelInfo(clone); /* This was the same as the first - junk */ return; }