[GRASS-SVN] r68059 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 15 01:24:46 PDT 2016


Author: hcho
Date: 2016-03-15 01:24:46 -0700 (Tue, 15 Mar 2016)
New Revision: 68059

Modified:
   grass/trunk/lib/gis/parser.c
Log:
parser: Revert r68057 since this fix changes the meaning of answers[0]

Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c	2016-03-15 08:08:06 UTC (rev 68058)
+++ grass/trunk/lib/gis/parser.c	2016-03-15 08:24:46 UTC (rev 68059)
@@ -1416,7 +1416,7 @@
 		for (len = 0, ptr2 = ptr1; *ptr2 != '\0' && *ptr2 != ',';
 		     ptr2++, len++) ;
 
-		if (ptr2 == opt->answer || len > 0) {	/* answer = "" or skip ,, */
+		if (len > 0) {	/* skip ,, */
 		    opt->answers[ans_num] = G_malloc(len + 1);
 		    memcpy(opt->answers[ans_num], ptr1, len);
 		    opt->answers[ans_num][len] = 0;



More information about the grass-commit mailing list