[GRASS-SVN] r51024 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 9 13:38:41 EST 2012


Author: martinl
Date: 2012-03-09 10:38:40 -0800 (Fri, 09 Mar 2012)
New Revision: 51024

Modified:
   grass/trunk/lib/vector/Vlib/read_pg.c
Log:
fix r51022


Modified: grass/trunk/lib/vector/Vlib/read_pg.c
===================================================================
--- grass/trunk/lib/vector/Vlib/read_pg.c	2012-03-09 18:37:42 UTC (rev 51023)
+++ grass/trunk/lib/vector/Vlib/read_pg.c	2012-03-09 18:38:40 UTC (rev 51024)
@@ -732,7 +732,8 @@
 	reallocate_cache(cache, 1);
     }
     cache->lines_num = 0;
-    fparts->n_parts = 0;
+    if (fparts)
+	fparts->n_parts = 0;
     
     ret = -1;
     if (ftype == SF_POINT) {



More information about the grass-commit mailing list