From: Nikita Popov Date: Fri, 12 Apr 2019 14:03:01 +0000 (+0200) Subject: Fix uninit warning in gd.c X-Git-Tag: php-7.4.0alpha1~511 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7207110362f95a1edd4bbd0a511897461e88ad54;p=php Fix uninit warning in gd.c This matches the upstream implementation. --- diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index 32de38f6c3..2013e8ef42 100644 --- a/ext/gd/libgd/gd.c +++ b/ext/gd/libgd/gd.c @@ -1593,7 +1593,7 @@ void gdImageFilledArc (gdImagePtr im, int cx, int cy, int w, int h, int s, int e int i, pti; int lx = 0, ly = 0; int fx = 0, fy = 0; - int startx, starty, endx, endy; + int startx = -1, starty = -1, endx = -1, endy = -1; if ((s % 360) == (e % 360)) { s = 0; e = 360;