]> granicus.if.org Git - php/commitdiff
Remove unused variable.
authorIlia Alshanetsky <iliaa@php.net>
Sat, 28 Feb 2004 22:58:51 +0000 (22:58 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sat, 28 Feb 2004 22:58:51 +0000 (22:58 +0000)
ext/pdf/pdf.c

index 2e7dac8a561535c74c3adba2435170c45d6dca67..2131ca223986498250aa715268f52ee2a5564c51 100644 (file)
@@ -1944,7 +1944,7 @@ PHP_FUNCTION(pdf_open_image_file)
 PHP_FUNCTION(pdf_open_memory_image)
 {
        zval **arg1, **arg2;
-       int i, j, color, count;
+       int i, j, color;
        int pdf_image;
        gdImagePtr im;
        unsigned char *buffer, *ptr;
@@ -1962,7 +1962,6 @@ PHP_FUNCTION(pdf_open_memory_image)
        }
        ZEND_FETCH_RESOURCE(im, gdImagePtr, arg2, -1, "Image", le_gd);
 
-       count = 3 * im->sx * im->sy;
        buffer = (unsigned char *) safe_emalloc(3 * im->sx, im->sy, 0);
 
        ptr = buffer;