From: Mark Cave-Ayland Date: Fri, 3 Feb 2012 21:03:54 +0000 (+0000) Subject: Move initialisation of pgsql2shp state endian flag to the same location all the other... X-Git-Tag: 2.0.0alpha4~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f4262f4d48e96c30c8fdd74e3c6627268fdc2c58;p=postgis Move initialisation of pgsql2shp state endian flag to the same location all the other initialisers. git-svn-id: http://svn.osgeo.org/postgis/trunk@9019 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/pgsql2shp-core.c b/loader/pgsql2shp-core.c index 284f10004..fde9c071c 100644 --- a/loader/pgsql2shp-core.c +++ b/loader/pgsql2shp-core.c @@ -1248,6 +1248,7 @@ ShpDumperCreate(SHPDUMPERCONFIG *config) state->column_map_pgfieldnames = NULL; state->column_map_dbffieldnames = NULL; state->column_map_size = 0; + state->big_endian = is_bigendian(); return state; } @@ -1393,9 +1394,6 @@ ShpDumperConnectDatabase(SHPDUMPERSTATE *state) PQclear(res); - /* Detect host endianness */ - state->big_endian = is_bigendian(); - free(connstring); return SHPDUMPEROK;