]> granicus.if.org Git - php/commitdiff
Fix warnings (Marcus & Pierre-Alain Joye)
authorMarcus Boerger <helly@php.net>
Thu, 14 Nov 2002 15:08:39 +0000 (15:08 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 14 Nov 2002 15:08:39 +0000 (15:08 +0000)
ext/gd/libgd/gd.c

index cc407d6cc37635b00fff9b8017b536bac4878fa2..0c33d231130eed5a76b626013c2151bfebd6d788 100644 (file)
@@ -2215,7 +2215,7 @@ void gdImageSkewX (gdImagePtr dst, gdImagePtr src, int uRow, int iOffset, double
        int i, r, g, b, a;
        FuncPtr f;
 
-       int pxlOldLeft, pxlLeft, pxlSrc;
+       int pxlOldLeft, pxlLeft=0, pxlSrc;
 
        if (src->trueColor) {
                f = gdImageGetTrueColorPixel;
@@ -2301,7 +2301,7 @@ void gdImageSkewY (gdImagePtr dst, gdImagePtr src, int uCol, int iOffset, double
        typedef int (*FuncPtr)(gdImagePtr, int, int);
        int i, iYPos=0, r, g, b, a;
        FuncPtr f;
-       int pxlOldLeft, pxlLeft, pxlSrc;
+       int pxlOldLeft, pxlLeft=0, pxlSrc;
 
        if (src->trueColor) {
                f = gdImageGetTrueColorPixel;