Browse Source

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 năm trước cách đây
mục cha
commit
054c9dfcc3
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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) {