summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-07-06 20:13:37 +0000
committerMiles Bader <miles@gnu.org>1995-07-06 20:13:37 +0000
commit31b60b577e2480adae0fd3630d86232c996f6f1d (patch)
treee3a6ccf40a4210c0fccc5b8a3e037658ed607664 /utils
parent395f6db4c8a51fbce0ed596d9b1d20678f77fad2 (diff)
Give an error message instead of dying when no filename argument is given.
Diffstat (limited to 'utils')
-rw-r--r--utils/settrans.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/settrans.c b/utils/settrans.c
index 89efee19..a6e37049 100644
--- a/utils/settrans.c
+++ b/utils/settrans.c
@@ -127,6 +127,9 @@ main(int argc, char *argv[])
default: usage(-1);
}
+ if (! node_name)
+ usage (-1);
+
if (!active && !passive)
passive = 1;