浏览代码

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[3] = NULL;
     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++;
     }