[GRASS-SVN] r60048 - grass/trunk/vector/v.in.db

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 2 09:53:57 PDT 2014


Author: hcho
Date: 2014-05-02 09:53:57 -0700 (Fri, 02 May 2014)
New Revision: 60048

Modified:
   grass/trunk/vector/v.in.db/main.c
Log:
Fixed a seg fault

Modified: grass/trunk/vector/v.in.db/main.c
===================================================================
--- grass/trunk/vector/v.in.db/main.c	2014-05-02 16:39:18 UTC (rev 60047)
+++ grass/trunk/vector/v.in.db/main.c	2014-05-02 16:53:57 UTC (rev 60048)
@@ -147,7 +147,9 @@
 	}
     }
 
-    Vect_open_new(&Map, outvect->answer, with_z);
+    if (Vect_open_new(&Map, outvect->answer, with_z) == -1)
+	exit(EXIT_FAILURE);
+
     Vect_set_error_handler_io(NULL, &Map);
     
     Vect_hist_command(&Map);



More information about the grass-commit mailing list