[GRASS-SVN] r60441 - grass/branches/releasebranch_7_0/display/d.legend
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri May 23 01:40:37 PDT 2014
Author: hamish
Date: 2014-05-23 01:40:37 -0700 (Fri, 23 May 2014)
New Revision: 60441
Modified:
grass/branches/releasebranch_7_0/display/d.legend/histogram.c
Log:
avoid the possibility of using variable uninitialized
Modified: grass/branches/releasebranch_7_0/display/d.legend/histogram.c
===================================================================
--- grass/branches/releasebranch_7_0/display/d.legend/histogram.c 2014-05-23 08:39:16 UTC (rev 60440)
+++ grass/branches/releasebranch_7_0/display/d.legend/histogram.c 2014-05-23 08:40:37 UTC (rev 60441)
@@ -16,7 +16,7 @@
int map_type, int is_fp)
{
int i, nsteps;
- long cell_count;
+ long cell_count = 0;
double max_width, width_mult, dx;
double dy, y0_adjust; /* only needed for CELL maps */
struct stat_list dist_stats;
More information about the grass-commit
mailing list