aboutsummaryrefslogtreecommitdiff
path: root/src/apps/cs2cs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/apps/cs2cs.cpp')
-rw-r--r--src/apps/cs2cs.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/apps/cs2cs.cpp b/src/apps/cs2cs.cpp
index 03fd4dba..a8e152a7 100644
--- a/src/apps/cs2cs.cpp
+++ b/src/apps/cs2cs.cpp
@@ -346,6 +346,10 @@ int main(int argc, char **argv) {
int have_to_flag = 0, inverse = 0;
int use_env_locale = 0;
+ if( argc == 0 ) {
+ exit(1);
+ }
+
/* This is just to check that pj_init() is locale-safe */
/* Used by nad/testvarious */
if (getenv("PROJ_USE_ENV_LOCALE") != nullptr)