[GRASS-SVN] r43074 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 12 13:23:46 EDT 2010
Author: mmetz
Date: 2010-08-12 17:23:46 +0000 (Thu, 12 Aug 2010)
New Revision: 43074
Modified:
grass/trunk/lib/vector/Vlib/cindex.c
Log:
avoid struct stat
Modified: grass/trunk/lib/vector/Vlib/cindex.c
===================================================================
--- grass/trunk/lib/vector/Vlib/cindex.c 2010-08-12 17:23:15 UTC (rev 43073)
+++ grass/trunk/lib/vector/Vlib/cindex.c 2010-08-12 17:23:46 UTC (rev 43074)
@@ -490,7 +490,6 @@
char buf[500], file_path[2000];
struct gvfile fp;
struct Plus_head *Plus;
- struct stat info;
G_debug(2, "Vect_cidx_open(): name = %s mapset= %s", Map->name,
Map->mapset);
@@ -500,7 +499,7 @@
sprintf(buf, "%s/%s", GV_DIRECTORY, Map->name);
G__file_name(file_path, buf, GV_CIDX_ELEMENT, Map->mapset);
- if (stat(file_path, &info) != 0) /* does not exist */
+ if (access(file_path, F_OK) != 0) /* does not exist */
return 1;
More information about the grass-commit
mailing list