From d9eae98863a1c4d11fe7cb683b9e2fff1e4f5911 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Wed, 3 Feb 2010 21:42:20 +0000 Subject: [PATCH] Fix handling of "missing table argument" case to use file name properly. git-svn-id: http://svn.osgeo.org/postgis/trunk@5194 b70326c6-7e19-0410-871a-916f4a2858ee --- loader/shp2pgsql-cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/shp2pgsql-cli.c b/loader/shp2pgsql-cli.c index 6fa91e9e5..22435f315 100644 --- a/loader/shp2pgsql-cli.c +++ b/loader/shp2pgsql-cli.c @@ -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 == '.' ) { -- 2.50.1