From: oetiker Date: Sun, 15 Jan 2006 12:25:36 +0000 (+0000) Subject: make sure gcc does not thing gridind may be undefined X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1de89384aaa455c16be1839abfe3f7ee4ec3af95;p=rrdtool-all.git make sure gcc does not thing gridind may be undefined git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@746 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index ba0460ee..a762b25b 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -1527,7 +1527,7 @@ calc_horizontal_grid(image_desc_t *im) double range; double scaledrange; int pixel,i; - int gridind; + int gridind=0; int decimals, fractionals; im->ygrid_scale.labfact=2;