patch fix warning in ext/gd/libgd/gd.c
| From: | Pierre-Alain Joye | Date: | Tue, 12 Nov 2002 20:57:49 +0000 |
| Subject: | patch fix warning in ext/gd/libgd/gd.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-90890@lists.php.net to get a copy of this message | ||
Hello,
Fix the last warning I got in ext/gd/libg/gd.c (using -W -g3)
pa
Index: gd.c =================================================================== RCS file: /repository/php4/ext/gd/libgd/gd.c,v retrieving revision 1.24 diff -u -r1.24 gd.c --- gd.c 12 Nov 2002 13:12:58 -0000 1.24 +++ gd.c 12 Nov 2002 20:56:44 -0000 @@ -2215,7 +2215,7 @@ int i, r, g, b, a; FuncPtr f; - int pxlOldLeft, pxlLeft, pxlSrc; + int pxlOldLeft, pxlLeft=0, pxlSrc; if (src->trueColor) { f = gdImageGetTrueColorPixel;
Index: gd.c =================================================================== RCS file: /repository/php4/ext/gd/libgd/gd.c,v retrieving revision 1.24 diff -u -r1.24 gd.c --- gd.c 12 Nov 2002 13:12:58 -0000 1.24 +++ gd.c 12 Nov 2002 20:56:44 -0000 @@ -2215,7 +2215,7 @@ int i, r, g, b, a; FuncPtr f; - int pxlOldLeft, pxlLeft, pxlSrc; + int pxlOldLeft, pxlLeft=0, pxlSrc; if (src->trueColor) { f = gdImageGetTrueColorPixel;