From: Paul Ramsey Date: Wed, 3 Feb 2010 21:42:20 +0000 (+0000) Subject: Fix handling of "missing table argument" case to use file name properly. X-Git-Tag: 1.5.0~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9eae98863a1c4d11fe7cb683b9e2fff1e4f5911;p=postgis 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 --- 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 == '.' ) {