Kaynağa Gözat

Don't open maps twice

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@52177 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 13 yıl önce
ebeveyn
işleme
6361173867
1 değiştirilmiş dosya ile 1 ekleme ve 4 silme
  1. 1 4
      raster/r.mapcalc/map.c

+ 1 - 4
raster/r.mapcalc/map.c

@@ -490,7 +490,6 @@ int open_map(const char *name, int mod, int row, int col)
     int use_cats = 0;
     int use_colors = 0;
     struct map *m;
-    int fd;
 
     if (row < min_row)
 	min_row = row;
@@ -505,8 +504,6 @@ int open_map(const char *name, int mod, int row, int col)
     if (!mapset)
 	G_fatal_error(_("Raster map <%s> not found"), name);
 
-    fd = Rast_open_old(name, mapset);
-
     switch (mod) {
     case 'M':
 	break;
@@ -561,7 +558,7 @@ int open_map(const char *name, int mod, int row, int col)
     m->use_rowio = 0;
     m->min_row = row;
     m->max_row = row;
-    m->fd = fd;
+    m->fd = -1;
 
     if (use_cats)
 	init_cats(m);