From: Paul Ramsey Date: Thu, 3 Jun 2010 19:10:00 +0000 (+0000) Subject: Remove crash when dbf file is missing / unloadable X-Git-Tag: 2.0.0alpha1~2978 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d38b9b71e4d1a1f05abb0f508129d97f2fa3f7ae;p=postgis Remove crash when dbf file is missing / unloadable git-svn-id: http://svn.osgeo.org/postgis/trunk@5678 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/shp2pgsql-core.c b/loader/shp2pgsql-core.c index 90a968aad..0131300da 100644 --- a/loader/shp2pgsql-core.c +++ b/loader/shp2pgsql-core.c @@ -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; }