]> granicus.if.org Git - postgis/commitdiff
Initialize config->createindex value to 0
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 3 Feb 2010 22:42:13 +0000 (22:42 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 3 Feb 2010 22:42:13 +0000 (22:42 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5195 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql-core.c

index 80d4e40d7a0877e404f48e113e4ffa08c6d59fce..81e9719d2f506becbff722b979a0840c02f906c0 100644 (file)
@@ -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 */