diff options
author | 2006-05-08 11:56:16 +0000 | |
---|---|---|
committer | 2006-05-08 11:56:16 +0000 | |
commit | 05587730f25c961aac68f2b2664fcdeba990abf8 (patch) | |
tree | 707cc0a2ee636c8a693b1c3c3da0b6cba45afe7c | |
parent | we no longer have a static flavor for bash, replace the example with screen. (diff) | |
download | wireguard-openbsd-05587730f25c961aac68f2b2664fcdeba990abf8.tar.xz wireguard-openbsd-05587730f25c961aac68f2b2664fcdeba990abf8.zip |
correctly handle the `no input file' case.
-rw-r--r-- | usr.bin/rcs/rcsmerge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/rcsmerge.c b/usr.bin/rcs/rcsmerge.c index c99024cb4c9..fd114ed5029 100644 --- a/usr.bin/rcs/rcsmerge.c +++ b/usr.bin/rcs/rcsmerge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsmerge.c,v 1.39 2006/05/08 09:59:09 xsa Exp $ */ +/* $OpenBSD: rcsmerge.c,v 1.40 2006/05/08 11:56:16 xsa Exp $ */ /* * Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org> * All rights reserved. @@ -92,7 +92,7 @@ rcsmerge_main(int argc, char **argv) argc -= rcs_optind; argv += rcs_optind; - if (argc < 0) { + if (argc < 1) { warnx("no input file"); (usage)(); exit(D_ERROR); |