diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-11-13 11:50:12 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-11-13 11:50:12 +0000 |
commit | 83fd2eba9c9236f5cd6f87a6baa35c08c976910e (patch) | |
tree | 6a58073eb950c9a161d1353f295d27d80dfd3f5c /usr.bin | |
parent | 21b1dcd9fbe6fef6eefe61c5d6bf5be77dd92ad9 (diff) |
fix check on required arguments.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/admin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/admin.c b/usr.bin/cvs/admin.c index d1f6c529cfd..77eac305e71 100644 --- a/usr.bin/cvs/admin.c +++ b/usr.bin/cvs/admin.c @@ -1,4 +1,4 @@ -/* $OpenBSD: admin.c,v 1.37 2006/11/13 11:04:19 xsa Exp $ */ +/* $OpenBSD: admin.c,v 1.38 2006/11/13 11:50:11 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * Copyright (c) 2005 Joris Vink <joris@openbsd.org> @@ -119,7 +119,7 @@ cvs_admin(int argc, char **argv) argc -= optind; argv += optind; - if (argc <= 1) + if (argc == 0) fatal("%s", cvs_cmd_admin.cmd_synopsis); cr.enterdir = NULL; |