com php-src: minor fix on previous: ext/gd/libgd/gd_crop.c

From: Date: Sat, 28 Dec 2013 13:29:14 +0000
Subject: com php-src: minor fix on previous: ext/gd/libgd/gd_crop.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-75487@lists.php.net to get a copy of this message
Commit: 464c219ed4ebce6b9196cae308967ac7f7f58bde Author: Remi Collet <remi@php.net> Sat, 28 Dec 2013 14:29:14 +0100 Parents: 8f4a5373bb71590352fd934028d6dde5bc18530b Branches: PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=464c219ed4ebce6b9196cae308967ac7f7f58bde Log: minor fix on previous Changed paths: M ext/gd/libgd/gd_crop.c Diff: diff --git a/ext/gd/libgd/gd_crop.c b/ext/gd/libgd/gd_crop.c index 90a99a6..bba425d 100644 --- a/ext/gd/libgd/gd_crop.c +++ b/ext/gd/libgd/gd_crop.c @@ -43,6 +43,7 @@ static int gdColorMatch(gdImagePtr im, int col1, int col2, float threshold); gdImagePtr gdImageCrop(gdImagePtr src, const gdRectPtr crop) { gdImagePtr dst; + int y; /* check size */ if (crop->width<=0 || crop->height<=0) { @@ -78,7 +79,7 @@ gdImagePtr gdImageCrop(gdImagePtr src, const gdRectPtr crop) #if 0 printf("rect->x: %i\nrect->y: %i\nrect->width: %i\nrect->height: %i\n", crop->x, crop->y, crop->width, crop->height); #endif - int y = crop->y; + y = crop->y; if (src->trueColor) { unsigned int dst_y = 0; while (y < (crop->y + (crop->height - 1))) {

« previous php.cvs (#75487) next »