]> granicus.if.org Git - postgis/commitdiff
Add initialization to fix one Win32 segfault.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 2 Jan 2010 08:17:42 +0000 (08:17 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 2 Jan 2010 08:17:42 +0000 (08:17 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5090 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql-core.c

index 6754aeb41c44eb7aa4fa1dc7c9b34977364a346d..58fb696bc98458355b487dc0c38566ca4be6c8d4 100644 (file)
@@ -850,6 +850,7 @@ set_config_defaults(SHPLOADERCONFIG *config)
        config->schema = NULL;
        config->table = NULL;
        config->geom = strdup(GEOMETRY_DEFAULT);
+       config->shp_file = NULL;
        config->readshape = 1;
        config->sr_id = -1;
        config->hwgeom = 0;