]> granicus.if.org Git - postgis/commitdiff
fixed misplaced declaration after body start
authorSandro Santilli <strk@keybit.net>
Fri, 7 Jan 2005 10:13:52 +0000 (10:13 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 7 Jan 2005 10:13:52 +0000 (10:13 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1245 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgparse.c

index 61d9a43802fdba16783df565e46ea0df94311558..11bc66a9ef6fc67cb388ad5ca2450f8162f2293a 100644 (file)
@@ -737,9 +737,10 @@ parse_wkb(const char** b)
 {
        int4 type;
        byte xdr = read_wkb_byte(b);
-       swap_order=0;
        int4 localsrid;
 
+       swap_order=0;
+
        if ( xdr != getMachineEndian() )
        {
                swap_order=1;