]> granicus.if.org Git - postgis/commitdiff
Move initialisation of pgsql2shp state endian flag to the same location all the other...
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Fri, 3 Feb 2012 21:03:54 +0000 (21:03 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Fri, 3 Feb 2012 21:03:54 +0000 (21:03 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9019 b70326c6-7e19-0410-871a-916f4a2858ee

loader/pgsql2shp-core.c

index 284f10004f704e962baa4dedcc009a62920d9d49..fde9c071ce3fbc557351186f1379b79a430ce34d 100644 (file)
@@ -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;