git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50189 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -63,7 +63,8 @@ void rdwr_gridatb(void)
Rast_put_f_row(fd, cell);
}
G_percent(i, cellhd.rows, 2);
- fclose(fp);
+ if(fp)
+ fclose(fp);
Rast_close(fd);
Rast_put_cell_title(oname, buf);