Преглед изворни кода

Update parse.c

Chop leading and trailing white spaces from column names
Markus Metz пре 5 година
родитељ
комит
feecd4b7d4
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      vector/v.to.db/parse.c

+ 1 - 1
vector/v.to.db/parse.c

@@ -168,7 +168,7 @@ int parse_command_line(int argc, char *argv[])
     options.col[2] = NULL;
     options.col[2] = NULL;
     options.col[3] = NULL;
     options.col[3] = NULL;
     while (parms.col->answers && parms.col->answers[ncols]) {
     while (parms.col->answers && parms.col->answers[ncols]) {
-	options.col[ncols] = G_store(parms.col->answers[ncols]);
+	options.col[ncols] = G_store(G_chop(parms.col->answers[ncols]));
 	ncols++;
 	ncols++;
     }
     }