From 27325d61cc5f24ee73b1f43bbd8cb7dba7b9dd66 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Wed, 3 Feb 2010 22:42:13 +0000 Subject: [PATCH] Initialize config->createindex value to 0 git-svn-id: http://svn.osgeo.org/postgis/trunk@5195 b70326c6-7e19-0410-871a-916f4a2858ee --- loader/shp2pgsql-core.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/loader/shp2pgsql-core.c b/loader/shp2pgsql-core.c index 80d4e40d7..81e9719d2 100644 --- a/loader/shp2pgsql-core.c +++ b/loader/shp2pgsql-core.c @@ -844,20 +844,21 @@ void set_config_defaults(SHPLOADERCONFIG *config) { config->opt = 'c'; - config->schema = NULL; config->table = NULL; + config->schema = NULL; config->geom = strdup(GEOMETRY_DEFAULT); config->shp_file = NULL; - config->readshape = 1; - config->sr_id = -1; - config->hwgeom = 0; config->dump_format = 0; - config->forceint4 = 0; + config->simple_geometries = 0; config->geography = 0; config->quoteidentifiers = 0; - config->null_policy = POLICY_NULL_INSERT; + config->forceint4 = 0; + config->createindex = 0; + config->readshape = 1; config->encoding = strdup(ENCODING_DEFAULT); - config->simple_geometries = 0; + config->null_policy = POLICY_NULL_INSERT; + config->sr_id = -1; + config->hwgeom = 0; } /* Create a new shapefile state object */ -- 2.50.1