]> granicus.if.org Git - postgis/commitdiff
Minor update to comments.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 25 Feb 2012 20:35:26 +0000 (20:35 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 25 Feb 2012 20:35:26 +0000 (20:35 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9302 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql-cli.c

index b62ff6d6370f9ca189b402930bc91df1b12731a0..618d14f4e36df914c7ac488f57cf58897f3de040 100644 (file)
@@ -262,7 +262,7 @@ main (int argc, char **argv)
                char *strptr = argv[pgis_optind];
                char *chrptr = strchr(strptr, '.');
 
-               /* Schema qualified table name */
+               /* OK, this is a schema-qualified table name... */
                if (chrptr)
                {
                        if ( chrptr == strptr ) 
@@ -271,8 +271,8 @@ main (int argc, char **argv)
                                usage();
                                exit(0);
                        }
-                       /* Null terminate the '.' */
-                       *chrptr = 0;
+                       /* Null terminate at the '.' */
+                       *chrptr = '\0';
                        /* Copy in the parts */
                        config->schema = strdup(strptr);
                        config->table = strdup(chrptr+1);