git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@70498 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -64,7 +64,7 @@ int centroids(int fd, /* File descriptor of map layer to process */
/* compute averages */
if (method > 0)
- for (i = 0; i <= max; i++) {
+ for (i = 1; i <= max; i++) {
if (count[i]) {
numb = count[i];
e[i] /= numb;