浏览代码

Missing inits caused infinite loop

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41653 15284696-431f-4ddb-bdfa-cd5b030d7da7
Colin Nielsen 15 年之前
父节点
当前提交
d87f5afa3d
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      raster/r.drain/main.c
  2. 2 2
      raster/r.drain/r.drain.html

+ 1 - 1
raster/r.drain/main.c

@@ -642,7 +642,7 @@ struct point *drain_cost(int dir_fd, struct point *list, int nrow, int ncol)
      * read next. This is repeated via a while loop until a null direction is found.
      */
 
-    int neighbour, next_row, next_col, go = 1;
+    int neighbour, row, col, next_row, next_col, go = 1;
     DCELL direction;
     DCELL *dir_buf;
 

+ 2 - 2
raster/r.drain/r.drain.html

@@ -162,8 +162,8 @@ for the input, rather than the elevation surface. The output is then created
 according to one of the <b>-can</b> flags.
 <div class="code"><pre>
 The directions are recorded as GRASS standard directions:
-       112.5 90  67.5         i.e. a cell with the value 135 
-157.5  135   0   45   22.5    means the cell <b>before</b> it is 
+       112.5     67.5         i.e. a cell with the value 135 
+157.5  135   90  45   22.5    means the cell <b>before</b> it is 
        180   x   0            to the south-east.
 202.5  225  270  315  337.5
        247.5     292.5