]> granicus.if.org Git - postgis/commitdiff
Fix segfault on bogus pgsql2shp call (#2504)
authorSandro Santilli <strk@keybit.net>
Wed, 9 Oct 2013 14:36:46 +0000 (14:36 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 9 Oct 2013 14:36:46 +0000 (14:36 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12017 b70326c6-7e19-0410-871a-916f4a2858ee

loader/pgsql2shp-cli.c

index 61caf7b0a4a0376d68193c385ff8ddb799d15633..defb067dec8635a275315dd2a9548ab3b0728cab 100644 (file)
@@ -163,6 +163,10 @@ main(int argc, char **argv)
       }
                }
        }
+       else
+       {
+               usage(1);
+       }
 
        state = ShpDumperCreate(config);