summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--src/actions.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0ec2422..0e800f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
* src/actions.c (wingravity_to_string): Fix the north gravity
string to return "n" not "ng".
+ (cmd_defborder): return NULL when no (or a bad) argument is passed
+ in.
2002-01-23 Shawn <sabetts@vcn.bc.ca>
diff --git a/src/actions.c b/src/actions.c
index b28e48a..17fe2b1 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -1851,6 +1851,7 @@ cmd_defborder (int interactive, void *data)
|| sscanf (data, "%d", &tmp) < 1)
{
message (" defborder: One argument required ");
+ return NULL;
}
if (tmp >= 0)