diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/actions.c | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -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) |