[GRASS-SVN] r62304 - grass/trunk/general/g.remove
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Oct 20 07:49:51 PDT 2014
Author: hcho
Date: 2014-10-20 07:49:51 -0700 (Mon, 20 Oct 2014)
New Revision: 62304
Modified:
grass/trunk/general/g.remove/construct_pattern.c
Log:
g.remove: Minor refactoring
Modified: grass/trunk/general/g.remove/construct_pattern.c
===================================================================
--- grass/trunk/general/g.remove/construct_pattern.c 2014-10-20 14:40:27 UTC (rev 62303)
+++ grass/trunk/general/g.remove/construct_pattern.c 2014-10-20 14:49:51 UTC (rev 62304)
@@ -37,10 +37,9 @@
if (G_legal_filename(name) == -1)
found_illegal_names = 1;
- if (!i)
- strcpy(p, name);
- else
- sprintf(p++, ",%s", name);
+ if (i)
+ *p++ = ',';
+ strcpy(p, name);
p += strlen(name);
}
More information about the grass-commit
mailing list