aboutsummaryrefslogtreecommitdiff
path: root/src/apps/geod.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/apps/geod.cpp')
-rw-r--r--src/apps/geod.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/apps/geod.cpp b/src/apps/geod.cpp
index 6e3f059e..4f48a57a 100644
--- a/src/apps/geod.cpp
+++ b/src/apps/geod.cpp
@@ -136,6 +136,10 @@ int main(int argc, char **argv) {
FILE *fid;
static int eargc = 0, c;
+ if( argc == 0 ) {
+ exit(1);
+ }
+
if ((emess_dat.Prog_name = strrchr(*argv,'/')) != nullptr) ++emess_dat.Prog_name;
else emess_dat.Prog_name = *argv;
inverse = strncmp(emess_dat.Prog_name, "inv", 3) == 0 ||