From d38b9b71e4d1a1f05abb0f508129d97f2fa3f7ae Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Thu, 3 Jun 2010 19:10:00 +0000 Subject: [PATCH] Remove crash when dbf file is missing / unloadable git-svn-id: http://svn.osgeo.org/postgis/trunk@5678 b70326c6-7e19-0410-871a-916f4a2858ee --- loader/shp2pgsql-core.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.40.0