瀏覽代碼

fix https://trac.osgeo.org/grass/changeset/51022

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51024 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父節點
當前提交
360df6d3dd
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lib/vector/Vlib/read_pg.c

+ 2 - 1
lib/vector/Vlib/read_pg.c

@@ -732,7 +732,8 @@ SF_FeatureType cache_feature(const char *data, int skip_polygon,
 	reallocate_cache(cache, 1);
     }
     cache->lines_num = 0;
-    fparts->n_parts = 0;
+    if (fparts)
+	fparts->n_parts = 0;
     
     ret = -1;
     if (ftype == SF_POINT) {