]> granicus.if.org Git - postgis/commitdiff
Remove crash when dbf file is missing / unloadable
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 3 Jun 2010 19:10:00 +0000 (19:10 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 3 Jun 2010 19:10:00 +0000 (19:10 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5678 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql-core.c

index 90a968aadc90c94f08ceda8dd053b4bab59b53f9..0131300daa5af9f3d456d6a15e1f1e297d07997a 100644 (file)
@@ -879,6 +879,10 @@ ShpLoaderCreate(SHPLOADERCONFIG *config)
        state->hSHPHandle = NULL;
        state->hDBFHandle = NULL;
        state->wkbtype = 0;
+    state->types = NULL;
+    state->widths = NULL;
+    state->precisions = NULL;
+    state->col_names = NULL;
 
        return state;
 }