소스 검색

v.vect.stats: fix compiler warning

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61344 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 10 년 전
부모
커밋
054c9dfcc3
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      vector/v.vect.stats/main.c

+ 3 - 1
vector/v.vect.stats/main.c

@@ -217,7 +217,9 @@ int main(int argc, char *argv[])
 
     if (print_flag->answer)
 	/* get field separator */
-	fs = G_option_to_separator(fs_opt);
+	    fs = G_option_to_separator(fs_opt);
+    else
+	    fs = NULL;
 
     /* check for stats */
     if (method_opt->answer) {