From: Pierre Joye Date: Sun, 1 May 2005 05:52:54 +0000 (+0000) Subject: - MFB: #32891, init old y positions to non possible values. -1 being used X-Git-Tag: php-5.0.5RC1~338 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c966aaa0649ea88357e77d2b742ebdee6740cf1;p=php - MFB: #32891, init old y positions to non possible values. -1 being used if the center start a (x,0) --- diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index 1ee0603467..794ba3581a 100644 --- a/ext/gd/libgd/gd.c +++ b/ext/gd/libgd/gd.c @@ -1735,8 +1735,8 @@ void gdImageFilledEllipse (gdImagePtr im, int mx, int my, int w, int h, int c) rx = r << 1; ry = 0; x = a; - old_y2=-1; - old_y1=-1; + old_y2=-2; + old_y1=-2; while (x > 0){ if (r > 0) { my1++;my2--;