Code

make sure gcc does not thing gridind may be undefined
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 15 Jan 2006 12:25:36 +0000 (12:25 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 15 Jan 2006 12:25:36 +0000 (12:25 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@746 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_graph.c

index ba0460eecad4cc9e73d034b936f693809a6ab854..a762b25bfa4bac99b3c2404fa48fcaff70e94710 100644 (file)
@@ -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;