]> granicus.if.org Git - postgis/commitdiff
Fix handling of "missing table argument" case to use file name properly.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 3 Feb 2010 21:42:20 +0000 (21:42 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 3 Feb 2010 21:42:20 +0000 (21:42 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5194 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql-cli.c

index 6fa91e9e529e3de5cf9e190408f80ef035308271..22435f3150f552006e07329faecec68cd0fa1561 100644 (file)
@@ -201,7 +201,7 @@ main (int argc, char **argv)
        {
                char *shp_file = strdup(config->shp_file);
                char *ptr;
-               for ( ptr = shp_file + strlen(shp_file); ptr >= shp_file; ptr-- )
+               for ( ptr = shp_file + strlen(shp_file); ptr > shp_file; ptr-- )
                {
                        if ( *ptr == '.' )
                        {