]> granicus.if.org Git - postgis/commitdiff
Initialize another variable
authorSandro Santilli <strk@kbt.io>
Mon, 10 Jul 2017 17:51:23 +0000 (17:51 +0000)
committerSandro Santilli <strk@kbt.io>
Mon, 10 Jul 2017 17:51:23 +0000 (17:51 +0000)
otherwise used uninitialized when dumping 0-rows tables or queries

git-svn-id: http://svn.osgeo.org/postgis/trunk@15482 b70326c6-7e19-0410-871a-916f4a2858ee

loader/pgsql2shp-core.c

index b0774de7e0494db097560e74f49ce4e49668e703..3d2d0e5987fe8c1999d1a9af456bbdebf5bcb25f 100644 (file)
@@ -1156,6 +1156,7 @@ ShpDumperCreate(SHPDUMPERCONFIG *config)
        /* Set any state defaults */
        state->conn = NULL;
        state->outtype = 's';
+       state->outshptype = 0;
        state->geom_oid = 0;
        state->geog_oid = 0;
        state->schema = NULL;